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

Handcuff script where player changes team when arrested? [SOLVED]

Asked by 6 years ago
Edited 6 years ago

I am trying to make a handcuffs script where when a player gets arrested, they get killed automatically and their team changes. I tried putting it in a LocalScript and it did not work. Here is the script:

`script.Parent.Touched:connect(function(hit)
    hit.Parent.TeamColor = BrickColor.new("Crimson")
    hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -100
end) `
0
It works. iRexBot 147 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Don't use hit.Parent.Humaniod.Health = -900000 Use hit.Parent:BreakJoints()That is a more effective way of killing someone.

Ad

Answer this question