c00lkiddv2016

Ball Nub

Jun 16th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.87 KB | None | 0 0
  1. plyr = game.Players.LocalPlayer
  2. char = plyr.Character
  3. char.Humanoid.WalkSpeed = 90
  4. char.Animate.Disabled = true
  5.  
  6. hop = Instance.new('HopperBin', plyr.Backpack)
  7. hop.Name = 'BallNub'
  8. hop.Selected:connect(function()
  9. ball = Instance.new('Part', char)
  10. ball.BrickColor = BrickColor.new('Really black')
  11. ball.Size = Vector3.new(2,2,2)
  12. ball.CanCollide = false
  13. ball.Shape = "Ball"
  14. wel = Instance.new('Weld')
  15. wel.Part0 = char['Right Arm']
  16. wel.Part1 = ball
  17. wel.C0 = CFrame.new(0,-2,0)
  18. wel.Parent = char['Right Arm']
  19. ball.RightSurface = "Smooth"
  20. ball.LeftSurface = "Smooth"
  21. ball.FrontSurface = "Smooth"
  22. ball.LeftSurface = "Smooth"
  23. ball.TopSurface = "Smooth"
  24. ball.BottomSurface = "Smooth"
  25. char.Torso["Right Shoulder"].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0.5)
  26. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.3,1.4,-0.5)*CFrame.Angles(1.5,0,0.5)
  27. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.3,3,0)
  28. game:GetService('Chat'):chat(char.Head, "Ball is in nuetral", Enum.ChatColor.Green)
  29. end)
  30.  
  31. mode = Instance.new('StringValue', char)
  32. mode.Name = "mode"
  33. mode.Value = "Nuetral"
  34.  
  35. hop.Selected:connect(function(mouse)
  36. mouse.KeyDown:connect(function(key)
  37. key:lower()
  38. if key == "j" then
  39. game:GetService('Chat'):chat(char.Head, "Swtiching to electric element", Enum.ChatColor.Red)
  40. ball.Reflectance = 0.5
  41. wait(0.03)
  42. ball.Reflectance = 0.10
  43. wait(0.03)
  44. ball.Reflectance = 0.20
  45. wait(0.03)
  46. ball.Reflectance = 0.30
  47. wait(0.03)
  48. ball.Reflectance = 0.40
  49. wait(0.03)
  50. ball.Reflectance = 0.50
  51. wait(0.03)
  52. ball.Reflectance = 0.60
  53. wait(0.03)
  54. ball.Reflectance = 0.70
  55. wait(0.03)
  56. ball.Reflectance = 0.80
  57. wait(0.03)
  58. ball.Reflectance = 0.90
  59. wait(0.03)
  60. ball.Reflectance = 1
  61. mode.Value = "Electric"
  62. end
  63. end)
  64. end)
  65. nerp = true
  66. hop.Selected:connect(function(mouse)
  67. mouse.Button1Down:connect(function()
  68. if mode.Value == "Nuetral" then
  69. derpa = ball.Touched:connect(function(hit)
  70. hum = hit.Parent:findFirstChild('Humanoid')
  71. if hum and nerp == true then
  72. nerp = true
  73. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -5
  74. hit.Parent.Humanoid.Sit = true
  75. nurb = hit.Parent.Torso.Velocity
  76. hit.Parent.Torso.Velocity = hit.Parent.Torso.Velocity+Vector3.new(900,900,900)
  77. wait(1)
  78. hit.Parent.Torso.Velocity = Vector3.new(nurb)
  79. nerp.Value = false
  80. wait(0.93)
  81. nerp.Value = true
  82. else
  83. wait()
  84. end
  85. end)
  86. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0.5)
  87. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1.5,0,0.5)
  88. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.3,3,0)
  89. wait(0.03)
  90. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2,0,-0.5)
  91. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(2,0,0.5)
  92. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.6,3,0)
  93. wait(0.03)
  94. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2.5,0,-0.5)
  95. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(2.5,0,0.5)
  96. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.9,3,0)
  97. wait(0.03)
  98. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(3,0,-0.5)
  99. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(3,0,0.5)
  100. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(2.2,3,0)
  101. char.Humanoid.Jump = true
  102. wait(0.5)
  103. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(3,0,-0.5)
  104. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(3,0,0.5)
  105. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.9,3,0)
  106. char.Humanoid.Jump = true
  107. wait(0.03)
  108. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2.5,0,-0.5)
  109. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(2.5,0,0.5)
  110. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.6,3,0)
  111. wait(0.03)
  112. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2,0,-0.5)
  113. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(2,0,0.5)
  114. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.3,3,0)
  115. wait(0.03)
  116. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0.5)
  117. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1.5,0,0.5)
  118. wait(0.03)
  119. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1,0,-0.5)
  120. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1,0,0.5)
  121. wait(0.03)
  122. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(0.5,0,-0.5)
  123. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(0.5,0,0.5)
  124. wait(0.03)
  125. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1,0,-0.5)
  126. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1,0,0.5)
  127. wait(0.03)
  128. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0.5)
  129. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1.5,0,0.5)
  130. derpa:disconnect()
  131. end
  132. end)
  133. mouse.Button1Down:connect(function()
  134. if mode.Value == "Electric" then
  135. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0.5)
  136. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1,0,0.4)
  137. sparkles = Instance.new('Sparkles', ball)
  138. wait(0.03)
  139. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2,0,-0.5)
  140. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(0.5,0,0.3)
  141. wait(0.03)
  142. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2.5,0,-0.5)
  143. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.7,-0.5)*CFrame.Angles(0,0,0.2)
  144. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.6,3,0)
  145. wait(0.03)
  146. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(3.5,0,-0.5)
  147. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(0,0,0.0)
  148. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.9,3,0)
  149. wait(3)
  150.  
  151. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(3.5,0,-0.5)
  152. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(1,0,0.4)
  153. sparkles = Instance.new('Sparkles', ball)
  154. wait(0.03)
  155. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2.5,0,-0.5)
  156. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,1,-0.5)*CFrame.Angles(0.5,0,0.3)
  157. wait(0.03)
  158. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(2,0,-0.3)
  159. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.7,-0.5)*CFrame.Angles(0,0,0.2)
  160. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.6,3,0)
  161. wait(0.03)
  162. char.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(1.5,0,-0)
  163. char.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(0,0,0.0)
  164. char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(1.3,3,0)
  165. ball2 = ball:Clone()
  166. ball.Transparency = 1
  167. ball2.Parent = game.Workspace
  168. ball2.Touched:connect(function(hit)
  169. print('1')
  170. if hit and hit.Parent.Name ~= char.Name then
  171. print('2')
  172. c = hit.Parent:findFirstChild('Humanoid')
  173. print('3')
  174. if c then
  175. print('4')
  176. nerp = true
  177. print('5')
  178. hit.Parent.Humanoid.WalkSpeed = 0
  179. print('6')
  180. hit.Parent.Animate.Disabled = false
  181. hit.Parent.Torso.Anchored = true
  182. ball2.Anchored = true
  183. hit.Parent.Torso['Right Shoulder'].C0 = CFrame.new(1.5,1,0)*CFrame.Angles(3,0,0.5)
  184. hit.Parent.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(3,0,-0.5)
  185. hit.Parent.Torso['Right Hip'].C0 = CFrame.new(0.5,-1,0.5)*CFrame.Angles(1,1,0)
  186. hit.Parent.Torso['Left Hip'].C0 = CFrame.new(0.5,-1,-0.5)*CFrame.Angles(-1,1,0)
  187. naerb = Instance.new('Part', char)
  188. narb.Position = hit.Parent.Torso.Position*CFrame.new(0,10,0)
  189. for i=1, 5 do
  190. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health -5
  191. wait(0.03)
  192. end
  193. else
  194. wait()
  195. end
  196. end
  197. end)
  198. floatForce = Instance.new("BodyForce")
  199. floatForce.force = Vector3.new(0, ball2:GetMass() * 196.1,0.0)
  200. floatForce.Parent = ball2
  201. ball2.Velocity = char.Torso.CFrame.lookVector*9
  202. wait(5)
  203. ball.Transparency = 0
  204. hit.Parent.Torso.Anchored = false
  205. hit.Parent.Humanoid.WalkSpeed = 16
  206. ball2:Destroy()
  207. end
  208. nerp = false
  209. nerp = true
  210. end)
  211. end)
Add Comment
Please, Sign In to add comment