Ok so... I'm working on a football game, and Im making it so the football teams run out of there locker rooms onto the field before the game. But it simply wont work. Can i have some help please?-
--Players running out if teamsPicked or randomTeams then function tpway() for i,v in pairs(game.Players:GetPlayers())do if v.Character and v.TeamColor.Name == game.Workspace.AwayS.TeamColor.Name then v.Character:MoveTo(game.Workspace.awaytele.Position) message("Introducing the away team!",3) game.Workspace.awayroom.door.CanCollide=false game.Workspace.Sounds.Cheer:Play() wait(10) game.Workspace.Sounds.Cheer:Stop() else return end function tpHome() for i,v in pairs(game.Players:GetPlayers())do if v.Character and v.TeamColor.Name==game.Workspace.HomeS.TeamColor.Name then v.Character:MoveTo(game.Workspace.hometele.Position) message("And Now! Here is your home team!",3) game.Workspace.homeroom.door.CanCollide=false game.Workspace.Sounds.Cheer:Play() wait(10) game.Workspace.Sounds.Cheer:Stop() setup(true) else return end end end end end end