So I want to make a brick that is moving with velocity and when it comes into contact with parts of a building that are unanchored but welded, these parts will then unweld and the building will fall apart.
So far my script looks like this
function onTouched(hit)
hit:BreakJoints()
end
connection = script.Parent.Touched:connect(onTouched)
This does not currently work and I'm a bit stuck on what to do.
