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

Does this Map Changer Work?

while true do
game.Lighting.Map1:clone().Parent = game.Workspace
wait(120)
game.Workspace.Map1:remove()
wait()

end

I believe I did it right!

2 comments

0

you should use serverstorage instead lighting now

0

Okay thanks!

2 answers

It doe work congratulations! Using server storage would be better although, server storage actually stores models and guis into it and be copied right out of it into a new parent like you did!

If you want to have multiple maps, I recommend doing

for i,v in pairs(game.Workspace.ModelWhereTheMapGoes:GetChildren()) do -- creates a table (list) of everything inside the model, then removes everything in it.
v:Destroy()
end
game.ServerStorage.MapYouWantToAddToWorkspace:Clone().Parent=game.Workspace.ModelWhereTheMapGoes

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