I wanna make a "crusher" that will be maked of spinning wheels, and i wanna make that the player dies when he touch that?
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
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?