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

how do i make noise perlin make big blocks?

I have a script that uses noise perlin to make a map. However, the map is really small and useless so I wanna know how to make it bigger.

Heres how small the map is compared to me:

https://gyazo.com/ab1dc42a958d3c6076dab90a581affdd

Here is the script:

local Seed = 42 -- The answer to life, the universe and everything.

for X = 0,50 do -- X Loop

    for Z = 0,50 do -- Z Loop

        -- Make the part
        local p = Instance.new("Part",workspace) 
        p.Anchored = true
        p.Size = Vector3.new(1,1,1)

        --Just for style
        p.TopSurface = "Smooth"
        p.Material = Enum.Material.Grass
        p.BrickColor = BrickColor.Green()

        --The noise
        local Y = math.noise(X/20,Z/20,Seed) * 5

        --Set the position
        p.CFrame = CFrame.new(X,Y,Z)
    end
    --Wait a bit so your toaster doesn't freeze.
    wait()
end
--Tfw you write all of this and it works in one try.

Please help me make them bigger!

2 comments

0

It's for you to decide the size of your blocks. If they are no longer 1x1x1 you will have to adapt your CFrame positioning code to take their size into account.

0

How would I make them be 5,3,5

1 answer

You're using small bricks with one stud each of size. You'll have to add another number in the two for loops (increment) if you want bigger bricks, and change the maximum number (or something) in both for loops to a larger number. Then you'll have to change the part size to something else.

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