Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make a brick fall when a player steps on it?

Asked by 7 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I was wondering if you could do that. Like in Flood Escape, when you press a button and something new appears, but instead the brick falls when you touch it?

0
Can you add your code into a code block so we can look at it? User#5423 17 — 7y
0
depends, do you want it to fall out of the world, or just fall down?? Quackshire 17 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

Try this, it'll make the brick fall to the ground when you touch it.

workspace.Part.Touched:connect(function() -- Change "Part" into the name of the brick
    script.Parent.Anchored = false -- This makes it so the part will unanchor the brick, making it fall.
    script:Destroy() -- This destroys the script after it is done so that it does repeat itself.
end)
0
doesn't* Quackshire 17 — 7y
Ad

Answer this question