Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --basename = "Base"
- function create_city(buildings)
- for i = 1,buildings do
- local building = Instance.new("Part",workspace)
- building.Anchored = true
- building.CanCollide = false
- building.Position = Vector3.new(math.random(-400,400),0,math.random(-400,400))
- building.Size = Vector3.new(50,math.random(30,150),50)
- building.BrickColor = BrickColor.Random()
- building.CanCollide = true
- building.RightSurface = "Inlet"
- building.LeftSurface = "Inlet"
- building.FrontSurface = "Inlet"
- building.BackSurface = "Inlet"
- building.TopSurface = "Smooth"
- building.BottomSurface = "Smooth"
- end
- end
- create_city(15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement