I want all the devs to be on the devs team and the players on the players team but it doesn't seem to be working.
plr = game.Players.LocalPlayer
repeat wait()until game.Players.LocalPlayer.ChildAdded
if plr.Name == "Gamerasassin514" or plr.Name == "DailyMadlymarthan" or plr.Name == "UwaisPlayz" then
plr.Team = game.Teams.Devs
plr.TeamColor = BrickColor.new("Royal purple")
end
if plr.Name ~= "Gamerasassin514" or plr.Name ~= "DailyMadlymarthan" or plr.Name ~= "UwaisPlayz" then
plr.Team = game.Teams.Players
plr.TeamColor = BrickColor.new("Bright red")
end

3 comments
use a playeradded event
but only server scripts can do that
if it is on a local script make a remote event that fires so a regular script will handle it or if it is already a script try using game:GetService("Teams") make sure the game items actually exist before attempting to find an item within the game