Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Switch team Script?

Does anyone know how to make a Switch team Script?

2 answers

Make a Gui button and put this inside:

local yes = true--if true then it kills the player when they click, if false the player lives
script.Parent.MouseButton1Click:connect(function()
	game.Players.LocalPlayer.TeamColor = BrickColor.new("Bright green") --change this to the team color you want
	if yes then
		game.Players.LocalPlayer.Character.Humanoid.Health = 0
	end
end)

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

This discussion is preserved as it was. New answers, comments, and votes are closed.