I've been making a game for a group and I'm having issues with an auto assign script. This is my code:
game.Players.PlayerAdded:connect(function(player)
if player:GetRankInGroup(5418984) > 0 then
player.Team = "Officers"
else
player.Team = "Raiders"
end
end)
I'm generally new to coding, so help would be appreciated! Also, I get no errors when I run this.

1 comment
Wait, my script, yeah, it have a problem :P ,edited.