Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

WHY DOESN'T THIS WORK!?!?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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
0
code block. yoshi8080 445 — 8y
0
? NateDawgGamingRoHD 5 — 8y

Answer this question