ryanswagg20

Untitled

Sep 9th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. local ball = Instance.new("Model",workspace)
  2. workspace.Base:remove()
  3. y = 0
  4. thing = 200
  5. main = CFrame.new(0,thing/4,0) * CFrame.Angles(0,y,0)
  6. go = 0.235
  7.  
  8. local col = 0
  9.  
  10. function circle()
  11. for i=0,math.pi*2,go do
  12. local p = Instance.new("Part",ball)
  13. p.formFactor = "Custom"
  14. p.Size = Vector3.new(thing/4,thing/4,5)
  15. p.Anchored = true
  16. p.TopSurface = 0
  17. p.BottomSurface = 0
  18. p.Elasticity = 1
  19. p.Friction = 0
  20. p.BrickColor = BrickColor.new(Color3.new(col,0,0))
  21. p.CFrame = main * CFrame.Angles(i,0,0) * CFrame.new(0,0,thing)
  22. col = col + 0.08
  23. if col >= 1 then
  24. col = 0
  25. end
  26. end
  27. end
  28.  
  29. function yes(path)
  30. if path:IsA("BasePart") then
  31. path.Friction = 0
  32. path.Elasticity = 1
  33. local bf = Instance.new("BodyForce",path)
  34. bf.force = Vector3.new(0,path:GetMass()*196.3,0)
  35. coroutine.resume(coroutine.create(function()
  36. while true do
  37. wait(4)
  38. path.RotVelocity = Vector3.new(math.random(-80,80),math.random(-80,80),math.random(-80,80))
  39. wait(0.5)
  40. path.Velocity = path.CFrame.lookVector * 500
  41. end
  42. end))
  43. end
  44. local h = path:findFirstChild("Humanoid")
  45. if h ~= nil then
  46. h.Sit = true
  47. h.Changed:connect(function(prop)
  48. h.Sit = true
  49. end)
  50. end
  51. for _,v in pairs(path:children()) do
  52. yes(v)
  53. end
  54. end
  55.  
  56. yes(workspace)
  57.  
  58. repeat
  59. circle()
  60. y = y + go
  61. main = main * CFrame.Angles(0,go,0)
  62. until y >= math.pi
Add Comment
Please, Sign In to add comment