George148

Untitled

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