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

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

Asked by 5 years ago

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

Closed as Not Constructive by User#21908 and User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
Shematics 117
5 years ago

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

Ad