bin = script.Parent
function anchor(object)
object.Anchored = true
end
function onTouched(part)
anchor(part)
end
bin.Touched:connect(onTouched)
is this right? Also i'm try to make a brick unanchor when touched.
It's correct, but make the bricks "Anchored" property set to false. Like this:
bin = script.Parent function anchor(object) object.Anchored = false --"Un-Anchors" the object end function onTouched(part) anchor(part) end bin.Touched:connect(onTouched)