Hello! I want to generate world like in minecraft. But I got some problems.
First is, world’s generating very long. If I want to generate world 500x90x500 (not even 256 blocks in height), execution timeout happens. But I have only perlin noise without anything.
Second is, roblox lags because of large amount of parts.
Is it possible to fix these problems?
1 Like
Only make and show visible parts. If a part is underground and surrounded on all sides, you won’t be able to see it. Don’t add it to the game and keep only its data until something changes.
Generating probably will take a while no matter what. If you do a wait() it will yield your code for a little allowing Roblox to run other code preventing it from timing out your code.
And finally though generating will take time, you can generate outwards in a circle from the player. That way you can spawn them while the map is still generating.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.