Axolotleless

Smooth voxelized terrain

Jan 31st, 2025 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local WorldProportionX, WorldProportionZ = 100, 100
  2. local NoiseScale = 50
  3. local Height = 5
  4. local PartProportion = 50
  5. math.randomseed(tick())
  6. local MathRandom = math.random()
  7.  
  8. for Number = -WorldProportionX, WorldProportionX do
  9.     for Number2 = -WorldProportionZ, WorldProportionZ do
  10.         local MathNoise = math.noise(Number / NoiseScale, Number2 / NoiseScale, MathRandom) * Height
  11.         local Part = Instance.new("Part")
  12.         Part.Anchored = true
  13.         Part.CFrame = CFrame.new(Number * PartProportion, MathNoise * PartProportion, Number2 * PartProportion)
  14.         Part.Size = Vector3.new(PartProportion, PartProportion, PartProportion)
  15.         Part.Parent = workspace
  16.     end
  17.     wait()
  18. end
  19.  
Advertisement
Add Comment
Please, Sign In to add comment