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

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

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

✓ Accepted answer
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

6 comments

0

Thanks !

0

Can you please click accept answer for my answer? and you're welcome lol

0

oof how ? I don't see it

0

It should be next to the Report button under the comment bar

0

I had to go with internet explorer to see it oof , thanks again

0

Thanks

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