Hi I am trying to make a script that changes people team on touch but does not seem to be working for me if someone could please help.
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
Player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player.TeamColor = BrickColor.new("Bright red ")
end
end)
