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

Why wont this work?

Asked by 10 years ago
local MoveUntil = 20
local Text = game.Workspace.Text

while true do
    if game.Players.NumPlayers > 0 then
        Text.Value = "The game is ready"
        wait(2)
        Text.Value = "The battle will begin in: "
        for i = 10, 1, -1 do
            wait(1)
        end
        Text.Value = "All fighters to the doors"
        wait(2)
        Text.Value = "The doors are now opening"
        wait(1)
        Text.Value = ""

        repeat 
            for k, r in pairs(game.Workspace.InvisibleWalls:GetChildren()) do 
                r.CFrame = r.CFrame+ Vector3.new(0,1,0)
            end
            wait(0.1)
        until game.Workspace.InvisibleWalls:GetChildren()[1].Position.Y >= MoveUntil

    else
        Text.Value = "You need 2 players to begin"  
    end
    wait(1)
end


Game stops processing when I go into solo mode at 50%

1 answer

Log in to vote
0
Answered by
DataStore 530 Moderation Voter
10 years ago

Works fine for me. What exactly isn't working for you/not working as you're expecting it to?

0
when I try to play it in solo mode, the game stops processing at 50% so I wasnt sure I need to slow the loop or somthing down? NinjoOnline 1146 — 10y
Ad

Answer this question