I have a TeamChange GUI at my fort, and it works mostly as intended. However, whenever the player respawns, they ONLY spawn at the Raider's spawn, which is the team everyone starts at on joining a server.
local ScreenGui = script.Parent
local CoastalCombat = ScreenGui.CoastalCombat
local Neutral = ScreenGui.Neutral
local Raiders = ScreenGui.Raiders
local player = ScreenGui.Parent.Parent
local character = player.Character
CoastalCombat.MouseButton1Down:connect(function()
if player:IsInGroup(2546195) then
player.TeamColor = BrickColor.new("Cool yellow")
character.Humanoid.Health = 0
end
end)
Neutral.MouseButton1Down:connect(function()
player.TeamColor = BrickColor.new("Bright green")
character.Humanoid.Health = 0
end)
Raiders.MouseButton1Down:connect(function()
player.TeamColor = BrickColor.new("Bright red")
character.Humanoid.Health = 0
end)

2 comments
You aren't allowing enough time for the team color to change. Roblox glitch
The teamcolor does change. It's just that players ONLY spawn at the raider's spawn.