g = script.Parent -- g is actually the folder in which the script is and g is in ServerStorage plr = g.Parent.Parent wait(.5) if plr:IsInGroup(1085813) then --Group ID plr.TeamColor = BrickColor.new("White") else plr.TeamColor = BrickColor.new("Pearl") end
ServerStorage's do not run scripts. If you want to however make it change teams upon join, here is the proper coding.
Script Location: ServerScriptService
game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(1085813) then plr.TeamColor = BrickColor.new("White") else plr.TeamColor = BrickColor.new("Pearl") end end)
I hope that helped. :)