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?
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