Advertisement
oopsrainbow4

Perlin Noise

Jun 21st, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local seed = Random.new():NextNumber(1, 100000)
  2. for x = -50, 50 do
  3.     for z = -50, 50 do
  4.         local noise = math.noise(seed, x/10, z/10) * 5
  5.         local part = Instance.new("Part")
  6.         part.Anchored = true
  7.         part.Size = Vector3.new(1,1,1)
  8.         part.Position = Vector3.new(x, noise, z)
  9.         part.Parent = game.Workspace
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement