Player = game.Players.LocalPlayer
TeamChange = Player.PlayerGui.TeamChange
Xotac = TeamChange.XotacLegion
Raiders = TeamChange.Raiders
Xotac.MouseButton1Down:connect(function()
Player.TeamColor = BrickColor.new("Cyan")
Player.Character:BreakJoints()
end)
Raiders.MouseButton1Down:connect(function()
Player.TeamColor = BrickColor.new("Bright red")
Player.Character:BreakJoints()
end)
The team change works. But sometimes it spawns you on the wrong spawn, even though you are on the right team... I do not know if it something wrong with the properties.

2 comments
How are your spawns set up?
Raider im pretty sure is auto assignable and neutral. Because it is the first. the other is not.