Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a brick switch between anchored and not anchored?

I want to know how to change a block from being anchored (stays in place) to not anchored (falls down) when a specific block touches it.

1 answer

Use the Touched event.

local part = script.Parent
part.Touched:connect(function(hit)
	if (hit.Name == "SpecificBrick") then -- A 'SpecificBrick' hit the part!
		part.Anchored = false
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.