Could someone check my code and see if their is any problems i can fix. I really appreciate it someone checked it and tell me if i have done anything wrong.
function onPlayerEntered(plr)
print(plr)
if plr:IsInGroup(6239051) then
print(6239051)
plr.Team = game:GetService([[Teams]])[Staff]--Team path
plr:LoadCharacter()
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)

4 comments
Okay, i will change that and see if it works :)
It keeps putting me on the 'guest' team instead of the 'staff' team, and I done what you said
try doing game:GetService("Teams")
i found the problem