Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use perlin noise to make terrain?

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

2 comments

0

Use the math.noise function

0

But how do you use the math.noise function and apply it to a part?

1 answer

✓ Accepted answer
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

This discussion is preserved as it was. New answers, comments, and votes are closed.