This is a very complex system. To perform this, you would have to have algorythms that change the frequency of the generation system. Here's an example from the wiki:
01 | local seed = math.random() |
07 | for x = -width/ 2 ,width/ 2 do |
08 | for z = -length/ 2 ,length/ 2 do |
09 | local y = (math.noise(seed,x/frequency,z/frequency) * (amplitude/ 2 )) + (amplitude/ 2 ) |
10 | workspace.Terrain:FillBlock(CFrame.new(x* 4 ,y* 2 ,z* 4 ),Vector 3. new( 4 ,y* 4 , 4 ),Enum.Material.Grass) |
Now, to make the different frequencies, we can do this:
1 | amplitude = amplitude + math.random(- 1.0 , 1.0 ) |
2 | frequency = frequency + math.random(- 1.0 , 1.0 ) |
And that makes:
01 | local seed = math.random() |
07 | for x = -width/ 2 ,width/ 2 do |
08 | for z = -length/ 2 ,length/ 2 do |
09 | local y = (math.noise(seed,x/frequency,z/frequency) * (amplitude/ 2 )) + (amplitude/ 2 ) |
10 | amplitude = amplitude + math.random(- 1.0 , 1.0 ) |
11 | frequency = frequency + math.random(- 1.0 , 1.0 ) |
12 | workspace.Terrain:FillBlock(CFrame.new(x* 4 ,y* 2 ,z* 4 ),Vector 3. new( 4 ,y* 4 , 4 ),Enum.Material.Grass) |
Hope this helps!
Closed as Not Constructive by titaneagle, xPolarium, green271, zblox164, and User#21908
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?