Lua isn’t really fast enough for this, but you just need to figure out the math and create blocks based on that. If you’re not experienced with geometry, you’ll probably need to start by gaining some experience with that. This subject is 100% mathematics and geometry, with some old-school loops and arrays for good measure.
What are you going to use your topic for?
I’m gonna use it to make my game more interesting, and to also just mess around with it.
I’m not sure how to do it in Roblox, but I’ll give you some pseudocode.
In Minecraft, the terrain is generated in a 3D space, with a height of 128 blocks. As you go down, the world is generated. The fourth dimension is time, which controls how the world is generated. From what I can tell in the video, the world is generated by weathering the block. In the video it looks like the fourth dimension is random. If you want to randomize the world, you can set a seed for the map generator and generate a random number based on the seed for the world generation.
If you want to weather a block, you need to do it in the direction of the fourth dimension. You can either generate the world in the direction of the fourth dimension or use mesh deformation. If you want to generate the world in the fourth dimension, you can store the world in a 4D array. You can use mesh deformation to deform the world. You just need to calculate the height of the world and use that to modify the mesh.