math.randomseed(tick())
local part = Instance.new("Part",workspace)
part.Anchored = true
local seed = math.random(1, 10e6)
local scale = 200
for x=1,scale do
for z=1,scale do
for y = 1,scale do
local new = part:Clone()
new.Parent = workspace
new.Anchored = true
new.Size = Vector3.new(5,5,5)
-----------------------------
local XIn = math.noise(y/scale,y/scale,seed)
local YIn = math.noise(x/scale,y/scale,seed)
local ZIn = math.noise(x/scale,y/scale,seed)
wait()
new.CFrame = CFrame.new(XIn*scale,YIn*scale*2.5,ZIn*scale)
------------------------------
end
end
end
I used an article with a Wiki, but I get a similar figure over and over again. How can I make perlin worms to generate caves?
