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
It works.