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

How can I optimize the generation of the world?

Asked by 6 years ago

I made a generation of the world that creates many parts. When the generation ends, the place starts to hang. How can I optimize more parts?

1 answer

Log in to vote
0
Answered by 6 years ago

Try this:

while 1-1=0 do
print("Regened!")
game.ServerStorage.map:Clone(game.Workspace)--Name what you are regenerating "map" and 
--put map in ServerStorage
wait()--The amount of time between regeneration
game.Workspace.map:Remove()
end
Ad

Answer this question