awzp

Hamsterball Local (not by me)

May 29th, 2018
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. --=[blah Era]=--
  2.  
  3.  
  4.  
  5.  
  6.  
  7. scale = 13
  8.  
  9. function weld(tab)
  10. local last = nil
  11. for i,v in pairs(tab) do
  12. if v:IsA("BasePart") then
  13. if last then
  14. local w = Instance.new("Weld",last)
  15. w.Part0 = w.Parent
  16. w.Part1 = v
  17. local pos = last.CFrame:toObjectSpace(v.CFrame)
  18. w.C0 = pos
  19. end
  20. last = v
  21. end
  22. end
  23. end
  24.  
  25. function makeball(pos)
  26. local model = Instance.new("Model",workspace)
  27. local rand = BrickColor.Random()
  28. for i=0,340,20 do
  29. wait()
  30. for z=-90,70,20 do
  31. local p = Instance.new("Part",model)
  32. p.formFactor = "Custom"
  33. p.BrickColor = rand
  34. p.Transparency = 0.5
  35. p.Size = Vector3.new(scale/5.5,scale/5.5,scale/140)
  36. p.Anchored = true
  37. p.TopSurface = 0
  38. p.BottomSurface = 0
  39. p.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(z),math.rad(i),0) * CFrame.new(0,0,-scale/2)
  40. p:breakJoints()
  41. end
  42. end
  43. weld(model:children())
  44. for i,v in pairs(model:children()) do v.Anchored = false end
  45. model:MakeJoints()
  46. end
  47.  
  48.  
  49. makeball(game.Players.LocalPlayer.Character.Torso.Position+Vector3.new(0,scale/2-2.5,0))
Add Comment
Please, Sign In to add comment