Advertisement
otorp2

roblox make blocks model particles

Dec 20th, 2017
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. mymodel = Instance.new("Model")
  2. mymodel.Parent = workspace
  3.  
  4.  
  5. function makeblocks()
  6.  
  7. local block = Instance.new("Part")
  8. block.Parent = mymodel
  9. local myparticle = Instance.new("ParticleEmitter")
  10. myparticle.Parent = block
  11.  
  12. end
  13.  
  14. for i =1, 300 do
  15. makeblocks()
  16. end
  17.  
  18. i = 0
  19. for k,v in next,workspace.Model:GetDescendants() do
  20. if v:IsA"BasePart" then
  21. i = i+1
  22. v.Name = i
  23.  
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement