Advertisement
memberhero

Untitled

Jul 9th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. xs = "memberhero"
  2. me = game.Players[xs]
  3. ch = me.Character
  4. to = ch.Torso
  5. myhum = ch.Humanoid
  6.  
  7. if script.Parent.className ~= "HopperBin" then
  8. hop = Instance.new("HopperBin")
  9. hop.Parent = me.Backpack
  10. hop.Name = "GrabNThrow"
  11. script.Parent = hop
  12. end
  13.  
  14. sp = script.Parent
  15.  
  16. p = Instance.new("Part")
  17. p.Parent = ch
  18. p.formFactor = 0
  19. p.Shape = "Ball"
  20. p.Size = Vector3.new(1,1,1)
  21. p.Anchored = false
  22. p.Transparency = 1
  23. p:BreakJoints()
  24. m = Instance.new("SpecialMesh")
  25. m.Parent = p
  26. m.MeshType = "Sphere"
  27. m.Scale = Vector3.new(1.3,1.3,1.3)
  28. p2 = p:clone()
  29. p2.Parent = ch
  30. p2:BreakJoints()
  31.  
  32. w = Instance.new("Weld")
  33. w.Parent = to
  34. w.Part0 = w.Parent
  35. w.Part1 = p
  36. w.C1 = CFrame.new(-1.5,-0.5,0)
  37. w2 = Instance.new("Weld")
  38. w2.Parent = to
  39. w2.Part0 = w2.Parent
  40. w2.Part1 = p2
  41. w2.C1 = CFrame.new(1.5,-0.5,0)
  42.  
  43. larm = ch["Left Arm"]
  44. rarm = ch["Right Arm"]
  45.  
  46. right = Instance.new("Weld")
  47. right.Parent = p
  48. right.Part0 = nil
  49. right.Part1 = nil
  50. right.C1 = CFrame.new(0,0.5,0)
  51.  
  52. left = Instance.new("Weld")
  53. left.Parent = p2
  54. left.Part0 = nil
  55. left.Part1 = nil
  56. left.C1 = CFrame.new(0,0.5,0)
  57.  
  58. origin = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  59.  
  60. using = false
  61. enabled = true
  62. mode = 0
  63.  
  64. function toch(hit)
  65. if enabled == true then return end
  66. local hum = hit.Parent:findFirstChild("Humanoid")
  67. if hum ~= nil then
  68. local torso = hit.Parent:findFirstChild("Torso")
  69. if torso ~= nil then
  70. enabled = true
  71. hum.Sit = true
  72. local weld = Instance.new("Weld")
  73. weld.Parent = rarm
  74. weld.Part0 = weld.Parent
  75. weld.Part1 = torso
  76. weld.C1 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(1.5,1.5,0)
  77. myhum.WalkSpeed = 0
  78. to.Anchored = true
  79. for i=1, 10 do
  80. wait()
  81. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  82. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
  83. end
  84. wait(0.5)
  85. weld:remove()
  86. local duh = false
  87. torso.Touched:connect(function(hit)
  88. if duh == true then return end
  89. duh = true
  90. if hit.Parent.Name == xs then return end
  91. hum.Health = hum.Health - 10
  92. end)
  93. torso.Velocity = to.CFrame.lookVector * Vector3.new(100,10,100)
  94. coroutine.resume(coroutine.create(function()
  95. for i=1, 20 do
  96. wait(0.03)
  97. local pa = torso.Parent:GetChildren()
  98. for i=1, #pa do
  99. if pa[i].className == "Part" then
  100. local k = pa[i]:clone()
  101. k.Parent = workspace
  102. k.Anchored = true
  103. k.CanCollide = false
  104. k.BrickColor = BrickColor.new("Black")
  105. k.Transparency = 0.7
  106. coroutine.resume(coroutine.create(function()
  107. wait(0.05)
  108. for i=1, 10 do
  109. wait()
  110. k.Transparency = k.Transparency + 0.03
  111. end
  112. k:remove()
  113. end))
  114. end
  115. end
  116. end
  117. end))
  118. for i=1, 7 do
  119. wait()
  120. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  121. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  122. end
  123. wait(0.02)
  124. myhum.WalkSpeed = 16
  125. to.Anchored = false
  126. wait(0.1)
  127. using = false
  128. right.Part0 = nil
  129. right.Part1 = nil
  130. left.Part0 = nil
  131. left.Part1 = nil
  132. left.C0 = origin
  133. right.C0 = origin
  134. end
  135. end
  136. end
  137.  
  138. rarm.Touched:connect(toch)
  139. larm.Touched:connect(toch)
  140.  
  141.  
  142. function select(mouse)
  143. mouse.Button1Down:connect(function()
  144. if using == true then return end
  145. using = true
  146. enabled = false
  147. left.Part0 = left.Parent
  148. left.Part1 = larm
  149. right.Part0 = right.Parent
  150. right.Part1 = rarm
  151. for i=1, 10 do
  152. wait()
  153. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,0)
  154. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,0)
  155. end
  156. wait(1)
  157. if enabled == true then return end
  158. enabled = true
  159. for i=1, 10 do
  160. wait()
  161. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.15,0,0)
  162. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.15,0,0)
  163. end
  164. using = false
  165. right.Part0 = nil
  166. right.Part1 = nil
  167. left.Part0 = nil
  168. left.Part1 = nil
  169. left.C0 = origin
  170. right.C0 = origin
  171. end)
  172. end
  173.  
  174. sp.Selected:connect(select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement