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

unable to clone a random minigame to the workspace?

Asked by 5 years ago

I dont get a error either

Status = game:GetService("ReplicatedStorage").Status
games = game:GetService("ReplicatedStorage").Games:GetChildren()



function GameLoop()
    local count = 10
    while count ~= -1 do
        Status.Value = "Intermission("..count..")"
        wait(1)
        count = count - 1
    end
    wait(1)
    Status.Value = "Selecting Game."
    wait(1)
    Status.Value = "Selecting Game.."
    wait(1)
    Status.Value = "Selecting Game..."
    wait(1)
    local num = math.random(1, #games)
    local gameChosen = games[num]
    local CurrentGame = gameChosen:Clone()
    CurrentGame.Parent = workspace
end

GameLoop()
0
You asked the exact same thing earlier... mudathir2007 157 — 5y
0
nobody is helping me so I gave them the full code jakebball2014 84 — 5y
0
instead of using a while loop try to use a for loop instead User#21908 42 — 5y
0
not an answer, just a helpful comment User#21908 42 — 5y

Answer this question