im trying to make a script that can generate mountains through noise, but when i put in noise it looks nothing like mountains and hills
local steps = 0
local layer = 0
local position
local origin = workspace.PlanetCenter.Position
local diameter = 500
local segmentSize = Vector3.new(30, 30, 10)
local seed = math.random(1, 10e6)
function getMaterial(height)
if height <= 20 then
return Enum.Material.Grass
elseif height <= 50 then
return Enum.Material.Rock
elseif height <= 100 then
return Enum.Material.Snow
elseif height > 100 then
return Enum.Material.Snow
end
end
local noiseScale = 200
local amplitude = 200
repeat
repeat
local height = math.noise(steps / noiseScale, layer / noiseScale, seed) * amplitude
position = CFrame.Angles(math.rad(steps), math.rad(-layer), math.rad(0)) * CFrame.new(0, 0, math.abs(diameter / 2))
workspace.Terrain:FillBlock(((position + position.LookVector * -height) + origin), segmentSize, getMaterial(height))
steps = steps + 1
until steps == 360
steps = 0
layer = layer + 1
task.wait()
until layer == 270
print('done')
anyone know how to make it look better?