Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local detal = nil
- block_size = 20
- for x = -200, 200, block_size do
- for y = -200, 200, block_size do
- local chance = math.random(100)
- if chance > 75 then
- detal = game.ServerStorage.Block:Clone()
- detal.Size = Vector3.new(block_size, 20, block_size)
- detal.Parent = game.Workspace.Map
- detal.Position = Vector3.new(x, 9, y)
- elseif chance > 25 then
- detal = game.ServerStorage.Block:Clone()
- detal.Size = Vector3.new(block_size, 1, block_size)
- detal.Parent = game.Workspace.Map
- detal.Position = Vector3.new(x, 19, y)
- end
- end
- end
Add Comment
Please, Sign In to add comment