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

How to use perlin noise to make terrain?

Asked by 5 years ago

I am trying to make terrain out of blocks in roblox studio

0
Use the math.noise function Rare_tendo 3000 — 5y
0
But how do you use the math.noise function and apply it to a part? waffle792 8 — 5y

1 answer

Log in to vote
0
Answered by
piRadians 297 Moderation Voter
5 years ago
seed = 49 -- or any other number
for x = 0,30 do
    for z = 0,30 do
        y = math.noise(x/9,z/9,seed) -- the reason I divided by 9  is because when it has all integers it returns 0, so we have to make at least one of these a float value.

    part.CFrame =CFrame.new(x,y,z)
    end
wait()
end
Ad

Answer this question