Hebablazin

Lolipop

May 30th, 2016
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 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. if script.Parent.className ~= "HopperBin" then
  116. local h = Instance.new("HopperBin", Me.Backpack)
  117. h.Name = "LOLIPOP"
  118. script.Parent = h
  119. end
  120. local bin = script.Parent
  121. --**>[[anims]]<**--
  122. function onSelected(mouse)
  123. RAW.Part1 = Rarm
  124. LAW.Part1 = Larm
  125. LAW.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  126. for i = 0, 1, 0.1 do
  127. RAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(-15*i), math.rad(-25*i))
  128. wait()
  129. end
  130. handlew.Part1 = Rarm
  131. handlew.C1 = CFrame.new(0, -0.75, 0) * CFrame.Angles(-0.5, 0, -8)
  132. for i = 0, 1, 0.1 do
  133. RAW.C0 = CFrame.Angles(math.rad(210-210*i), math.rad(-35*i), math.rad(-55*i))
  134. wait()
  135. end
  136. for i = 0, 1, 0.1 do
  137. LAW.C0 = CFrame.Angles(math.rad(105*i), math.rad(35*i), math.rad(0*i))
  138. wait()
  139. end
  140. handlecw.Part1 = Larm
  141. handlecw.C1 = CFrame.new(1, -2, 0) * CFrame.Angles(7.85, 0, 0)
  142. for i = 0, 1, 0.1 do
  143. LAW.C0 = CFrame.Angles(math.rad(105-105*i), math.rad(35*i), math.rad(0*i))
  144. wait()
  145. end
  146. mouse.Button1Down:connect(function()
  147. if Attkin == false and left > 0 then
  148. Attkin = true
  149. for i = 0, 1, 0.1 do
  150. RAW.C0 = CFrame.Angles(math.rad(55*i), math.rad(-55*i), math.rad(-55+95*i))
  151. wait()
  152. end
  153. left = left - 1
  154. char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 0.5
  155. handlebm.Scale = handlebm.Scale - Vector3.new(0.01, 0.01, 0.01)
  156. Attkin = false
  157. end
  158. end)
  159. mouse.KeyDown:connect(function(key)
  160. if key == "q" and Attkin == false then
  161. if Attkin == false then
  162. Attkin = true
  163. for i = 0, 1, 0.1 do
  164. RAW.C0 = CFrame.Angles(math.rad(125*i), math.rad(-55*i), math.rad(55*i))
  165. handle.Touched:connect(dmg)
  166. wait()
  167. end
  168. for i = 0, 1, 0.1 do
  169. RAW.C0 = CFrame.Angles(math.rad(125-125*i), math.rad(-55*i), math.rad(55-110*i))
  170. handle.Touched:connect(dmg)
  171. wait()
  172. end
  173. handle.Touched:connect(ndmg)
  174. Attkin = false
  175. end
  176. end
  177. end)
  178. end
  179. function onDesel(mouse)
  180. handle.Touched:connect(ndmg)
  181. for i = 0, 1, 0.1 do
  182. RAW.C0 = CFrame.Angles(math.rad(0*i), math.rad(-35*i), math.rad(-55*i))
  183. wait()
  184. end
  185. for i = 0, 1, 0.1 do
  186. LAW.C0 = CFrame.Angles(math.rad(105*i), math.rad(35*i), math.rad(0*i))
  187. wait()
  188. end
  189. handlecw.Part1 = handle
  190. handlecw.C1 = CFrame.new(0, -2.5, 0) * CFrame.Angles(7.85, 0, 0)
  191. for i = 0, 1, 0.1 do
  192. RAW.C0 = CFrame.Angles(math.rad(210*i), math.rad(-15*i), math.rad(-25*i))
  193. wait()
  194. end
  195. handlew.Part1 = Torso
  196. LAW.C1 = CFrame.new(0,0.5,0) * CFrame.Angles(0,0,0)
  197. handlew.C1 = CFrame.new(0, 0, 0.58) * CFrame.Angles(0, 0, -7)
  198. RAW.Part1 = nil
  199. LAW.Part1 = nil
  200. end
  201. bin.Selected:connect(onSelected)
  202. bin.Deselected:connect(onDesel)
  203. while true do
  204. if left == 0 and bin.Deselected == true then
  205. for i = 0,100,1 do
  206. if bin.Deselected == true then
  207. left = i
  208. handlebm.Scale = handlebm.Scale + Vector3.new(0.01, 0.01, 0.01)
  209. end
  210. end
  211. end
  212. wait()
  213. end
Add Comment
Please, Sign In to add comment