So I made a team change script only for the admins of the game so they can go on any team. but one of the scripts that make the game run correctly has a line of code that makes all players go to the human’s team which is needed so it doesn’t break the game. this is the line of code:
`plr.TeamColor = game.Teams.Humans.TeamColor`
but if I try to change teams it puts me back to humans
What can I do to prevent it? Because I have a list of players that get the admin team to change GUI. This is the GUI giver script:
local GUI = game:GetService("ReplicatedStorage").Team:Clone()
local Players = game:GetService("Players")
game.Players.PlayerAdded:connect(function(Player)
local list = {"ForgottenDogYT","iiToastified","Vizulizar","WaterMelonsss1","YelloBand","Difoolum","HZDRT","ROBLO401","twinblade81","Hello34892","Killingboyrock","HahaGetNoobed12313","scipjoe","Lonely_Anomaly","Tycromza"}
for i, v in pairs(list) do
if v == Player.Name then
GUI.Parent = Player.PlayerGui
end
end
end)