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

How do I script a part to make it so that when you touch it, it falls off?

Asked by
iiAceMo 50
4 years ago

So I was watching some of TheDevKing's videos and I was just listening to what he was saying i wasn't really listening to him but I heard him talking about a part falling and becoming un-anchored when you touch it. Help me I'm so curious to find out

0
You can use the parts touched event: yourPart.Touched:Connect(function(SOME FUNCTION GOES HERE)) royaltoe 5144 — 4y
0
and then when the part is touched make the part unanchored (yourPart.Anchored = false) royaltoe 5144 — 4y

1 answer

Log in to vote
0
Answered by
TNTIsLyfe 152
4 years ago

EZ EZ put this in the part u want to fall

script.Parent.Touched:connect(function()
script.Parent.Anchored = false
-- EZ
0
*** script.Parent.Touched:Connect(function() script.Parent.Anchored = false end)  *** royaltoe 5144 — 4y
0
thanks my good friend appreciate it! iiAceMo 50 — 4y
Ad

Answer this question