Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. db = 1
  2. math.randomseed(tick())
  3. Instance.new("Model",workspace).Name = "Parts"
  4. Instance.new("Model",game.Lighting).Name = "Parts"
  5. for i = 1,50 do
  6. a = Instance.new("Part")
  7. a.Anchored = true
  8. a.CanCollide = false
  9. a.CFrame = CFrame.new(math.random(0,500),math.random(200,300),math.random(0,500))
  10. a.Shape = math.random(0,2)
  11. a.BrickColor = BrickColor.Random()
  12. a.Size = Vector3.new(math.random(10,100),math.random(10,100),math.random(10,100))
  13. a.Name = "asdfghjkl"
  14. a.Parent = game.Lighting.Parts
  15. end
  16.  
  17. while wait(.3) do
  18. blah = 0
  19. for _, v in pairs(game.Lighting.Parts:GetChildren()) do
  20. v.Parent = workspace.Parts
  21. end
  22. wait()
  23. for i = 1,50 do
  24. a = Instance.new("Part")
  25. a.Anchored = true
  26. a.CanCollide = false
  27. a.CFrame = CFrame.new(math.random(0,500),math.random(0,500),math.random(0,500))
  28. a.Shape = math.random(0,2)
  29. a.BrickColor = BrickColor.Random()
  30. a.Size = Vector3.new(math.random(10,100),math.random(10,100),math.random(10,100))
  31. a.Name = "asdfghjkl"
  32. a.Parent = game.Lighting.Parts
  33. blah = blah+1
  34. end
  35. repeat wait() until blah == 50
  36. workspace.Parts:ClearAllChildren()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement