✓ ANSWER ACCEPTED
Break joints if there's a humanoid?
1 answer
✓ Accepted answer
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 :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Please add more to this question. When do you want to break the joints, who do you want to kill. If you dont tell more to this I cant help
I've to make lava bricks so that if someone touches it's joints can be break
oh ok, I'll send the script in the answers
sorry Its not working I've tried this one