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

Does this Map Changer Work?

Asked by 10 years ago
while true do
game.Lighting.Map1:clone().Parent = game.Workspace
wait(120)
game.Workspace.Map1:remove()
wait()

end

I believe I did it right!

0
you should use serverstorage instead lighting now NinjoOnline 1146 — 10y
0
Okay thanks! Y0UNGK1NG 0 — 10y

2 answers

Log in to vote
-1
Answered by 10 years ago

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!

Ad
Log in to vote
-1
Answered by
Validark 1580 Snack Break Moderation Voter
10 years ago

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

Answer this question