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

I want to loop this script so that I can make a map that changes. what should i do?

Asked by 4 years ago

I want to loop this script like make it work over and over again but it wont. I need help

local m = Instance.new("Message")


while (true) do
    wait(180)
    game.Workspace.Map1:Destroy()
    local mep = game.ServerStorage.Map2:Clone()
    m.Parent = game.Workspace
    m.Text = "Loading Map: Spooky"
    wait(2)
    mep.Parent = game.Workspace
    m:Remove()
    wait(180)
    game.Workspace.Map2:Destroy()
    local mep = game.ServerStorage.Map1:Clone()
    m.Parent = game.Workspace
    m.Text = "Loading Map: Lemon Town"
    wait(2)
    mep.Parent = game.Workspace
    m:Remove()
    wait(180)
end
0
errors? kkfilms_1 68 — 4y
0
no robloxs_gamemaker 13 — 4y
0
what doesn’t work? kkfilms_1 68 — 4y
0
i want it to loop robloxs_gamemaker 13 — 4y
View all comments (2 more)
0
it doesn’t loop? kkfilms_1 68 — 4y
0
NO robloxs_gamemaker 13 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

ok i fixed it

Ad

Answer this question