Advertisement
Marcel12311

Roblox[Create Random Brick Script]

Feb 9th, 2022 (edited)
1,622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. --[[
  2. ----------little note!----------
  3. this script put in Script not LocalScript!
  4. ]]--
  5. local amount = 100
  6. local vectorStart = Vector3.new(0,0,0)
  7. local times = 0.3
  8.  
  9. local vectormin = -150
  10. local vectormax = 150
  11.  
  12. local function addParts()
  13.     vectorStart = Vector3.new(math.random(vectormin,vectormax),20,math.random(vectormin,vectormax))
  14.     local createPart = Instance.new("Part")
  15.     createPart.Name = "Part"
  16.    
  17.     createPart.Position = vectorStart
  18.     createPart.BrickColor = BrickColor.random()
  19.     createPart.Parent = game.Workspace
  20. end
  21.  
  22.  
  23. while amount >= 0 do
  24.     addParts()
  25.     print("Part: "..amount)
  26.     amount-=1
  27.     wait(times)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement