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) `
Don't use hit.Parent.Humaniod.Health = -900000
Use hit.Parent:BreakJoints()
That is a more effective way of killing someone.