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

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

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

1 comment

0

It works.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.