I need help I tried to make an auto team script but everytime they get set onto the wrong team. Can you tell me what I did wrong?
Great regards, Luigi.
local Teams = game:GetService("Teams")
game.Players.PlayerAdded:connect(function(plr)
if plr.Name == "luigicrafter2" then
plr.Team = Teams.Owner
elseif plr.Name == "Greticrafter2" then
plr.Team = Teams.CoOwner
elseif plr.Name == "OrangenFeuer44" or "2014patrick" or "luigicrafter4" then
plr.Team = Teams.Staff
else
plr.Team = Teams.Player
end
end)

1 comment
Remember to click the accept answer button to give reputation to the person who helped to answer your question.