Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

6 comments

0

errors?

0

no

0

what doesn’t work?

0

i want it to loop

0

it doesn’t loop?

0

NO

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.