Does anyone know how to make a Switch team Script?
Make a Gui button and put this inside:
1 | local yes = true --if true then it kills the player when they click, if false the player lives |
2 | script.Parent.MouseButton 1 Click:connect( function () |
3 | game.Players.LocalPlayer.TeamColor = BrickColor.new( "Bright green" ) --change this to the team color you want |
4 | if yes then |
5 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 |
6 | end |
7 | end ) |
See i Need 1 of these but with the GROUP rank script included... Any Ideas?