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

How can I make that this brick is going to fall to the void ?

Asked by 5 years ago

ello .-. , I'm trying to make a brick falling to the void when somebody is touching it , I only have this script but it's anchoring and not making it falling to the void (I need the brick to go throught the other bricks) :

function x(hit)
script.Parent.Anchored = false
script.Parent.GlassSound:Play()
script:Destroy()
end

script.Parent.Touched:Connect(x)

Can I make this brick falling to the void by changing alittle bit this script or is it impossible ? I don't know how to do this :/

2 answers

Log in to vote
0
Answered by 5 years ago
function x(hit)
script.Parent.Anchored = false
script.Parent.CanCollide = false
script.Parent.GlassSound:Play()
script:Destroy()
end

script.Parent.Touched:Connect(x)

The CanCollide property toggles it's ability to go through other parts

0
Thanks ! BurnltDown 2 — 5y
0
Can you please click accept answer for my answer? and you're welcome lol User#1007 6 — 5y
0
oof how ? I don't see it BurnltDown 2 — 5y
0
It should be next to the Report button under the comment bar User#1007 6 — 5y
View all comments (2 more)
0
I had to go with internet explorer to see it oof , thanks again BurnltDown 2 — 5y
0
Thanks User#1007 6 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

I love you , it's working !

Answer this question