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

How do I make terrain generation, via perlins noise?

Asked by 4 years ago

Hi, I'm trying to make a sandbox roblox game similar to minecraft. Meant to be with more ore and my own choices of ore. I need to learn how to make terrain generation, so I could be able to start progress on my game.

If you can help me, I'd be very thankful.

I've started some off, unsure of the rest.

Script:

local wantedheight = 0 --I don't know this at the moment. If you can help me out, I would be very grateful. Also had to use 0's to not make it go red. I'd want this to be atleast 64.

local function generateterrain()
    for x = 1,50 do
        for z = 1,50 do
            local grass = Instance.new("Part")
            grass.Material = Enum.Material.Grass
            grass.Color = BrickColor.new("Lime green")
            grass.Size = 2,2,2
        end
end
    end



0
You would have to use Instance.new i'm pretty sure? Probably not.. Mrmonkeyman120 65 — 4y
0
use math.noise,https://scriptinghelpers.org/blog/terrain-generation-what-and-how theking48989987 2147 — 4y
1
This is how to do it: http://https://scriptinghelpers.org/questions/25225/how-to-use-mathnoise then you get where all parts are stored and do workspace:FillBlock(Part.CFrame,Part.Position,"Grass") greatneil80 2647 — 4y

Answer this question