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

How to make a brick anchor when it hits another brick?

Asked by 10 years ago

I need to make an intro for a game and I want the brick to fall, hit a specific brick, and then anchor when it hits?

1 answer

Log in to vote
0
Answered by 10 years ago
brick_a = --Path of the brick you want to anchor
brick_b= --Path of The brick that brick_a should touch

brick_b.Touched:connect(function(a)
if a.Name == brick_a.Name then
brick_a.Anchored = true
end
end)

--Hope this helped!
Ad

Answer this question