✓ Accepted answer
You posted the same question twice, so here's the same answer twice lol.
You can have a remote **function **called 'ChangeTeam' inside ReplicatedStorage, then a script like this in ServerScriptStorage:
local remote = game.ReplicatedStorage.ChangeTeam
function remote.OnServerInvoke(player, TeamName)
player.TeamColor = BrickColor.new(TeamName)
player.Character.Humanoid.Health = 0
end
So what the code above does is simple. Once invoked, it gets 2 pieces of information. The player, and the Team name. Then it changes the player's team. You can invoke this remote function to change any player's team from the client with FE on, and it does not matter which team you want them to be. Now, you just need to Invoke it.
local remote = game.ReplicatedStorage.ChangeTeams
remote:InvokeServer("Dark blue")
Now you have a FE change teams system! All you need is the first script, the RemoteFunction, and the knowledge of adjusting the 2nd script to what you want.