Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Switch team Script?

Asked by 11 years ago

Does anyone know how to make a Switch team Script?

2 answers

Log in to vote
0
Answered by
Mr1Vgy 30
11 years ago

Make a Gui button and put this inside:

1local yes = true--if true then it kills the player when they click, if false the player lives
2script.Parent.MouseButton1Click: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
7end)
Ad
Log in to vote
0
Answered by 10 years ago

See i Need 1 of these but with the GROUP rank script included... Any Ideas?

Answer this question