Thank you to AwesomeSauce! (Don't know why his answer got downvoted), because it works.
Make sure to run the script in game.StarterPlayer.StarterCharacterScripts
My current code is:
local owner = game.Teams.Owner
local admin = game.Teams.Admin
local friend = game.Teams.Friend
local guest = game.Teams.Guest
for _,player in pairs(game:GetService("Players"):GetPlayers()) do
if player.Name == "TomIzBored" or player.Name == "Player1" then
player.Team = owner
end
end
I get assigned to the Guest team every time! I placed the script inside Players. (game.Players)

1 comment
Scripts don't run in Players Service.