Perlin Noise Script not working

Hello, I’m trying to make a demonstration of Perlin noise so I can have something to base off while making my terrain generation script for my game but nothings happening. I’m new to math. Noise and all that so I was wondering if I’m doing anything wrong.

local Range = 10
local Rows = 100
local Collums = 100

local function createParts(X,Y,Alpha)
	local Part = Instance.new("Part")
	Part.Size = Vector3.new(1,1,1)
	Part.Anchored = true
	Part.Position = Vector3.new(X,Alpha * Range,Y)
	Part.Parent = workspace
end

for Y = 1,Collums do
	for X = 1,Rows do
		local Noise = math.noise(X/Rows,Y/Collums,0)
		createParts(X,Y,Noise)
	end
end

I believe the Noise should be the Y-axis of the part?

1 Like