I have made a team changer using a GUI. It uses image buttons and there are local scripts in each image button.
local Plr = game.Players.LocalPlayer local USMCID = 4487957 -- this is just so I can group lock the teams function pressed() if Plr:IsInGroup(USMCID) then Plr.Team = game.Teams:FindFirstChild("US Marines") Plr.Character.Head:Destroy() script.Parent.Parent.Visible = false end end script.Parent.MouseButton1Click:Connect(pressed)
well in that case it means SpawnLocation.TeamColor
property is not set and/or the SpawnLocation.Neutral
is true
set SpawnLocation.Neutral
to false, and SpawnLocation.TeamColor
to the corresponding team color
also make sure player.Neutral
is false, and the player.TeamColor
is set to the color SpawnLocation.TeamColor
that the player will spawn to.