hckarakurt
Check this screenshots they may lead to a clearer explanation. I'm using this method on a simple platformer im working on for fun.
setting up the bar that is inside the container (which helps create one each time it spawns)
im setting position and width and also pinning it to the object
my destroy on unpin command