Edit: Make sure to put the script in the kill part
So BreakJoints() doesn't always work the best with this. A better way would be setting the health to 0.
Here's how it should work:
script.Parent.Touched:Connect(function(hit) -- The player touches the part if hit.Parent:FindFirstChild("Humanoid") then -- Checking if the player has a Humanoid hit.Parent:FindFirstChild("Humanoid).Health = 0 -- Killing the player end)
I hope this helped :)
Closed as Not Constructive by Spjureeedd, Soban06, IAmNotTheReal_MePipe, and Dovydas1118
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?