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

How can i make a part that rotate on himself and make the specific player dies when touch?

I wanna make a "crusher" that will be maked of spinning wheels, and i wanna make that the player dies when he touch that?

1 answer

You can either use this code in that part you wanna rotate,

script.Parent.Touched:connect(function(hit) print(hit) hit.Parent.Humanoid.Health = 0 end) repeat wait() script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.1, 0, 0) until false

Or make two seperate script to use it

Hope this help :P

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