Advertisement
tcl1

[Lua] ROBLOX terrain generator

Nov 14th, 2013
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. --[[
  2. ROBLOX Terrain Generator
  3. By tcl1
  4.  
  5. This terrain generator includes:
  6. -Randomly placed parts
  7. -Randomized sizes
  8. ]]
  9.  
  10. ter = Instance.new("Model", game.Workspace)
  11. ter.Name = "terrainhold"
  12. det1 = math.random(1000)
  13. det2 = math.random(2)
  14. det3 = math.random(1000)
  15.  
  16. i = 0
  17.  
  18. for i = 0, 1000 do
  19.    
  20.     wait() 
  21.    
  22.     det1 = math.random(1000)
  23.     det2 = math.random(2)
  24.     det3 = math.random(1000)
  25.  
  26.     local myblock = Instance.new("Part", game.Workspace.terrainhold)
  27.     myblock.TopSurface = "Smooth"
  28.     myblock.BottomSurface = "Smooth"
  29.     myblock.BrickColor = BrickColor.new("Camo")
  30.     myblock.Anchored = true
  31.     myblock.Size = Vector3.new(90, 10, 100)
  32.     myblock.Position = Vector3.new(det1, det2, det3)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement