Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = workspace
- ------------------------------------------------------------------------------------
- max_x = 800
- min_x = 50
- max_y = 50
- min_y = -1
- max_z = 800
- min_z = 50
- posmax = 200
- sposmax = 500
- posmin = -200
- sposmin = -500
- maxgrass = 5000
- maxsand = 5000
- maxsx = 1000
- minsx = -1000
- maxsy = -0
- minsy = -0.5
- maxsz = 400
- minsz = -400
- ------------------------------------------------------------------------------------
- coroutine.resume(coroutine.create(function()
- --Grass
- for i = 1,maxgrass do
- local x = math.random(min_x, max_x)
- local y = math.random(min_y, max_y)
- local z = math.random(min_z,max_z)
- local x2 = math.random(posmin, posmax)
- game.Workspace.Terrain:FillBlock(CFrame.new(x2, y, x2), Vector3.new(x, y, z), Enum.Material.Grass)
- end
- wait()
- for i = 1,maxgrass do
- local x = math.random(min_x, max_x)
- local y = math.random(min_y, max_y)
- local z = math.random(min_z,max_z)
- local x2 = math.random(posmin, posmax)
- game.Workspace.Terrain:FillBlock(CFrame.new(x2, y, x2), Vector3.new(x, y, z), Enum.Material.Grass)
- end
- wait()
- for i = 1,maxgrass do
- local x = math.random(min_x, max_x)
- local y = math.random(min_y, max_y)
- local z = math.random(min_z,max_z)
- local x2 = math.random(posmin, posmax)
- game.Workspace.Terrain:FillBlock(CFrame.new(x2, y, x2), Vector3.new(x, y, z), Enum.Material.Grass)
- end
- end))
- wait(1)
- posmax = 200
- sposmax = 500
- posmin = -200
- sposmin = -500
- maxgrass = 5000
- maxsand = 5000
- maxsx = 1000
- minsx = -1000
- maxsy = -0
- minsy = -0.5
- maxsz = 400
- minsz = -400
- coroutine.resume(coroutine.create(function()
- --Sand
- for i = 1,maxsand do
- local x = math.random(minsx, maxsx)
- local y = math.random(minsy, maxsy)
- local z = math.random(minsz,maxsz)
- local x2 = math.random(sposmin, sposmax)
- game.Workspace.Terrain:FillBlock(CFrame.new(0, y, 0), Vector3.new(1200, y, 1200), Enum.Material.Sand)
- end
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement