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

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

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

2 comments

0

You can use the parts touched event: yourPart.Touched:Connect(function(SOME FUNCTION GOES HERE))

0

and then when the part is touched make the part unanchored (yourPart.Anchored = false)

1 answer

✓ Accepted answer

EZ EZ put this in the part u want to fall

script.Parent.Touched:connect(function()
script.Parent.Anchored = false
-- EZ

2 comments

0

*** script.Parent.Touched:Connect(function() script.Parent.Anchored = false end)  ***

0

thanks my good friend appreciate it!

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