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

Break joints if there's a humanoid? [closed]

Asked by 3 years ago

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 CoinWield 47 — 3y
0
I've to make lava bricks so that if someone touches it's joints can be break D1E2STINY -8 — 3y
0
oh ok, I'll send the script in the answers CoinWield 47 — 3y
0
sorry Its not working I've tried this one D1E2STINY -8 — 3y

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?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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 :)

Ad