alfie123213

Untitled

Dec 4th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. local Me = Game.Players.yfc
  2. local char = Me.Character
  3. local Torso = char.Torso
  4. local Rarm = char["Right Arm"]
  5. local Larm = char["Left Arm"]
  6. local Lleg = char["Left Leg"]
  7. local left1 = 50
  8. local left2 = 50
  9. Attkin = false
  10.  
  11. pcall(function() char[":P"]:remove() end)
  12. pcall(function() char["Parts"]:remove() end)
  13. for i,v in pairs(char:children()) do
  14. if v.className == "Hat" then
  15. v:remove()
  16. end
  17. end
  18.  
  19. --funcs--
  20. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  21. part.Parent = parent
  22. part.formFactor = form
  23. part.CanCollide = collide
  24. part.Transparency = tran
  25. part.Reflectance = ref
  26. part.Size = Vector3.new(x,y,z)
  27. part.BrickColor = BrickColor.new(color)
  28. part.TopSurface = 0
  29. part.BottomSurface = 0
  30. part.Anchored = anchor
  31. part.Locked = true
  32. part:BreakJoints()
  33. end
  34. function mesh(mesh, parent, x, y, z, type)
  35. mesh.Parent = parent
  36. mesh.Scale = Vector3.new(x, y, z)
  37. mesh.MeshType = type
  38. end
  39. function meshb(mesh, parent, x, y, z, b)
  40. mesh.Parent = parent
  41. mesh.Scale = Vector3.new(x, y, z)
  42. mesh.Bevel = b
  43. end
  44. function meshc(mesh, parent, x, y, z)
  45. mesh.Parent = parent
  46. mesh.Scale = Vector3.new(x, y, z)
  47. end
  48. function wel(weld, x, y, z, parent, part, parta, xx, yy, zz)
  49. local wel = weld
  50. wel.Parent = parent
  51. wel.Part0 = part
  52. wel.Part1 = parta
  53. wel.C1 = CFrame.new(x, y, z) * CFrame.Angles(xx, yy, zz)
  54. end
  55. --**>[[parts]]<**--
  56. local parts = Instance.new("Model")
  57. parts.Parent = char
  58. parts.Name = "Parts"
  59. --**<<*>>start<<*>>**--
  60. --*right*--
  61. local handle = Instance.new("Part")
  62. prop(handle, parts, false, 0.5, 0, 0.5, 0.5, 1, "White", false, "Custom")
  63. local handlem = Instance.new("BlockMesh")
  64. meshb(handlem, handle, 1, 1, 1, 0.05)
  65. local handlew = Instance.new("Weld")
  66. wel(handlew, 0.75, 0.75, 0, handle, handle, char["Right Leg"], 0, 0, 0)
  67. local handleb = Instance.new("Part")
  68. prop(handleb, parts, false, 0, 0, 0.4, 0.4, 0.8, "Bright green", false, "Custom")
  69. local handlebm = Instance.new("BlockMesh")
  70. meshb(handlebm, handleb, 1, 1, 1, 0.05)
  71. local handlebw = Instance.new("Weld")
  72. wel(handlebw, 0, 0, 0, handleb, handleb, handle, 0, 0, 0)
  73. --*left*--
  74. local handlec = Instance.new("Part")
  75. prop(handlec, parts, false, 0.5, 0, 0.5, 0.5, 1, "White", false, "Custom")
  76. local handlecm = Instance.new("BlockMesh")
  77. meshb(handlecm, handlec, 1, 1, 1, 0.05)
  78. local handlecw = Instance.new("Weld")
  79. wel(handlecw, -0.75, 0.75, 0, handlec, handlec, char["Left Leg"], 0, 0, 0)
  80. local handled = Instance.new("Part")
  81. prop(handled, parts, false, 0, 0, 0.4, 0.4, 0.8, "Bright green", false, "Custom")
  82. local handledm = Instance.new("BlockMesh")
  83. meshb(handledm, handled, 1, 1, 1, 0.05)
  84. local handledw = Instance.new("Weld")
  85. wel(handledw, 0, 0, 0, handled, handled, handlec, 0, 0, 0)
  86.  
  87. if script.Parent.className ~= "HopperBin" then
  88. local h = Instance.new("HopperBin", Me.Backpack)
  89. h.Name = "coke"
  90. script.Parent = h
  91. end
  92.  
  93.  
  94. local bin = script.Parent
  95.  
  96. local Model = Instance.new("Model",char)
  97. Model.Name = ":P"
  98. local RAB = Instance.new("Part") -- Right Arm Brick
  99. RAB.formFactor = "Custom"
  100. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  101. RAB.Transparency = 1
  102. RAB.Parent = Model
  103. RAB:BreakJoints()
  104. local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld
  105. RABW.Part0 = Torso
  106. RABW.Part1 = RAB
  107. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  108. local LAB = Instance.new("Part") -- Right Arm Brick
  109. LAB.formFactor = "Custom"
  110. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  111. LAB.Transparency = 1
  112. LAB.Parent = Model
  113. LAB:BreakJoints()
  114. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  115. LABW.Part0 = Torso
  116. LABW.Part1 = LAB
  117. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  118. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  119. RAW.Part0 = RAB
  120. RAW.Part1 = nil
  121. RAW.C1 = CFrame.new(0, 0.5, 0)
  122. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  123. LAW.Part0 = LAB
  124. LAW.Part1 = nil
  125. LAW.C1 = CFrame.new(0, 0.5, 0)
  126. --**>[[anims]]<**--
  127. function onSelected(mouse)
  128. RAW.Part1 = Rarm
  129. LAW.Part1 = Larm
  130. LAW.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  131. handlecw.Part1 = Larm
  132. handlew.Part1 = Rarm
  133. handlecw.C1 = CFrame.new(0.25,-1.25,0) * CFrame.Angles(0,0,0)
  134. handlew.C1 = CFrame.new(-0.25,-1.25,0) * CFrame.Angles(0,0,0)
  135. for i = 0, 1, 0.1 do
  136. RAW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0*i), math.rad(0*i), math.rad(0*i))
  137. LAW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0*i), math.rad(0*i), math.rad(0*i))
  138. wait()
  139. end
  140. mouse.Button1Down:connect(function()
  141. if Attkin == false and left1 > 0 then
  142. Attkin = true
  143. for i = 0, 1, 0.1 do
  144. RAW.C0 = CFrame.Angles(math.rad(55*i), math.rad(-55*i), math.rad(-60*i))
  145. wait()
  146. end
  147. for i = 0, 1, 0.1 do
  148. RAW.C0 = CFrame.Angles(math.rad(55-55*i), math.rad(-55+55*i), math.rad(-60+60*i))
  149. wait()
  150. end
  151. left1 = left1 - 1
  152. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 15
  153. char.Humanoid.Health = char.Humanoid.Health + 15
  154. handlebm.Scale = handlebm.Scale - Vector3.new(0.02, 0.02, 0.02)
  155. Attkin = false
  156. end
  157. end)
  158. mouse.KeyDown:connect(function(key)
  159. if key == "q" and Attkin == false then
  160. if Attkin == false then
  161. Attkin = true
  162. if left1 == 0 and left2 > 0 then
  163. for i = 0, 1, 0.1 do
  164. LAW.C0 = CFrame.Angles(math.rad(55*i), math.rad(55*i), math.rad(60*i))
  165. wait()
  166. end
  167. for i = 0, 1, 0.1 do
  168. LAW.C0 = CFrame.Angles(math.rad(55-55*i), math.rad(55-55*i), math.rad(60-60*i))
  169. wait()
  170. end
  171. end
  172. left2 = left2 - 1
  173. handledm.Scale = handledm.Scale - Vector3.new(0.02, 0.02, 0.02)
  174. Attkin = false
  175. end
  176. end
  177. end)
  178. end
  179.  
  180. function onDesel(mouse)
  181. handlew.Part1 = char["Right Leg"]
  182. LAW.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  183. handlew.C1 = CFrame.new(0.75, 0.75, 0) * CFrame.Angles(0, 0, 0)
  184. handlecw.Part1 = char["Left Leg"]
  185. LAW.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  186. handlecw.C1 = CFrame.new(-0.75, 0.75, 0) * CFrame.Angles(0, 0, 0)
  187. RAW.Part1 = nil
  188. LAW.Part1 = nil
  189. end
  190.  
  191. bin.Selected:connect(onSelected)
  192. bin.Deselected:connect(onDesel)
  193.  
  194. while true do
  195. if left1 == 0 then
  196. handleb.Transparency = 1
  197. end
  198. if left2 == 0 then
  199. handled.Transparency = 1
  200. end
  201. wait()
  202. end
Add Comment
Please, Sign In to add comment