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)
Possible Problems: -print(6239051) -print(Plr)
I found out my problem, i had to put put speech marks on the "Staff" team
Heres my updated code now
function onPlayerEntered(plr) print(plr) if plr:IsInGroup(6239051) then print(plr) plr.Team = game:GetService('Teams')["Staff"]--Team path plr:LoadCharacter() end end game.Players.PlayerAdded:connect(onPlayerEntered)