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

Break joints if there's a humanoid?


4 comments

0

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

0

I've to make lava bricks so that if someone touches it's joints can be break

0

oh ok, I'll send the script in the answers

0

sorry Its not working I've tried this one

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.