How to generate perlin worms within a location range only

My friend wanted me to ask on devforum on how to generate perlin worms within a location range.

1 Like

you can use the math.noise function found here and if you mean in a certain range of the noise you can do something like

local range = 50

for x = 1, range do

    for y = 1, range do

        for z = 1, range do

            local region = math.noise(x / range,y / range,z)

            --// do stuff with this certain noise region

        end

    end

end

if this doesnt work let me know as i wrote it quickly in vsc

2 Likes