make sure the Team is in the Team Folder

so the line should look like that (Example):

local AllowedTeam = game.Teams.YourTeamNameHere