FloweyTheFlower

Roblox Scripts #46 Pink The Killer (Normal damage)

Sep 14th, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.01 KB | None | 0 0
  1. --[[
  2.     Made by CharcterKaiser and leaked for all
  3.    
  4.     DO NOT claim this is yours because people around you will very much know that it is made by me.
  5. --]]
  6. function lerp(weld,beglerp,endlerp,speed)
  7.     weld.C0 = beglerp:lerp(endlerp,speed)
  8.     return weld.C0
  9. end
  10. local s = Instance.new("Sound",Character)
  11.  
  12. s.Name = "Sound"
  13. s.SoundId = "http://www.roblox.com/asset/?id=488464235"
  14. s.Volume = 150
  15. s.Looped = true
  16. s.archivable = false
  17.  
  18. s.Parent = game.Workspace
  19.  
  20. wait(1)
  21.  
  22. s:play()
  23.  
  24. local speed = 0.2
  25. local angle = 0
  26. local anglespeed = 2
  27. local armspeed = 0.2
  28. local armangle = 0
  29. local armanglespeed = 2
  30. local legspeed = 0.2
  31. local legangle = 0
  32. local leganglespeed = 2
  33. ignore = {}
  34. on = false
  35. damen = true
  36. enabled = true
  37. dancing = false
  38. goldenmode = false
  39. extradamage = 0
  40. combo = 1
  41. Player = game.Players.LocalPlayer
  42. mouse = Player:GetMouse()
  43. Char = Player.Character
  44. --[[if Char:FindFirstChild("Shirt") ~= nil then
  45.     Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=337323278"
  46. else
  47.     Instance.new("Shirt",Char).ShirtTemplate = "http://www.roblox.com/asset/?id=337323278"
  48. end
  49. if Char:FindFirstChild("Pants") ~= nil then
  50.     Char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=367611643"
  51. else
  52.     Instance.new("Pants",Char).PantsTemplate = "http://www.roblox.com/asset/?id=367611643"
  53. end ]]
  54. for i,v in pairs(Char:GetChildren()) do
  55.     if v.ClassName == "Hat" then
  56.         v:Destroy()
  57.     end
  58. end
  59. Human = Char.Humanoid
  60. Human.MaxHealth = 9999999
  61. wait(0.1)
  62. Human.Health = 9999999
  63. Sounds = {"rbxassetid://200632136","rbxassetid://360005297","rbxassetid://168586621"}
  64. Head = Char.Head
  65. Head.face.Texture="http://www.roblox.com/asset/?id=261138470"
  66. LA = Char:findFirstChild("Left Arm")
  67. RA = Char:findFirstChild("Right Arm")
  68. LL = Char:findFirstChild("Left Leg")
  69. RL = Char:findFirstChild("Right Leg")
  70. T = Char:findFirstChild("Torso")
  71. LA.BrickColor = BrickColor.new('Hot pink')
  72. RA.BrickColor = BrickColor.new('Hot pink')
  73. LL.BrickColor = BrickColor.new('Hot pink')
  74. RL.BrickColor = BrickColor.new('Hot pink')
  75. T.BrickColor = BrickColor.new('Hot pink')
  76. LS = T:findFirstChild("Left Shoulder")
  77. RS = T:findFirstChild("Right Shoulder")
  78. LH = T:findFirstChild("Left Hip")
  79. RH = T:findFirstChild("Right Hip")
  80. Neck = T:findFirstChild("Neck")
  81. HM = Char:findFirstChild("HumanoidRootPart")
  82. RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  83. --[[local BCHat = Instance.new("Part",Char)
  84. BCHat.CanCollide = false
  85. BCHat.Name = "Handle"
  86. BCHat.TopSurface = 0
  87. BCHat.BottomSurface = 0
  88. BCHat.Size = Vector3.new(2,0.8,1.2)
  89. BCHat.BrickColor = BrickColor.new("Bright yellow")
  90. local BCHatMesh = Instance.new("SpecialMesh",BCHat)
  91. BCHatMesh.MeshId = "http://www.roblox.com/asset/?id=1073659"
  92. local BCHatWeld = Instance.new("Weld",BCHat)
  93. BCHatWeld.Part0 = Head
  94. BCHatWeld.Part1 = BCHat
  95. BCHatWeld.C0 = CFrame.new(0,0.8,-0.1) ]]
  96. WLS = Instance.new("Weld", nil)
  97. WLS.C0 = CFrame.new(-1.5, 0.5, 0)
  98. WLS.C1 = CFrame.new(0, 0.5, 0)
  99. WLS.Part0 = T
  100. WLS.Part1 = LA
  101. WRS = Instance.new("Weld", nil)
  102. WRS.Part0 = T
  103. WRS.Part1 = RA
  104. WRS.C0 = CFrame.new(1.5, 0.5, 0)
  105. WRS.C1 = CFrame.new(0, 0.5, 0)
  106. WLH = LH
  107. WRH = RH
  108. WRH.Part0 = T
  109. WRH.Part1 = RL
  110. LSC0 = WLS.C0
  111. RSC0 = WRS.C0
  112. LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  113. LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  114. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  115. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  116. WRJ = RJ
  117. RJC0 = WRJ.C0
  118. RJC1 = WRJ.C1
  119. NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  120. Run = game:GetService("RunService")
  121. hopbin = Instance.new("HopperBin",Player.Backpack)
  122. hopbin.Name = "Bob The Builder"
  123.  
  124. local Hammer = Instance.new("Part",Char)
  125. Hammer.Name = "Hammer"
  126. Hammer.CanCollide = false
  127. Hammer.TopSurface = 0
  128. Hammer.BottomSurface = 0
  129. Hammer.Size = Vector3.new(1.8,0.4,3.8)
  130. --Hammer.Size = Vector3.new(1,1,1)
  131. local HammerMesh = Instance.new("SpecialMesh",Hammer)
  132. --HammerMesh.Scale = Vector3.new(1.8,1.8,1.8)
  133. HammerMesh.Scale = Vector3.new(1,1,1)
  134. HammerMesh.MeshId = "http://www.roblox.com/asset/?id=121944778" --16198309"
  135. HammerMesh.VertexColor = Vector3.new(100,0,0)
  136. --HammerMesh.TextureId = "http://www.roblox.com/asset/?id=389538125" --16198294"
  137. physicalprop = PhysicalProperties.new(0,0.3,0.5,1,1)
  138. Hammer.CustomPhysicalProperties = physicalprop
  139.  
  140. HW = Instance.new("Weld",T)
  141. HW.Part0 = Hammer
  142. HW.Part1 = RA
  143. --HW.C0 = CFrame.new(1.15,0,0) *CFrame.Angles(0,math.pi,math.pi/2)
  144. HW.C0 = CFrame.new(1.15,0,0) *CFrame.Angles(90,math.pi,math.pi/2)
  145. hc0 = HW.C0
  146.  
  147. Meshes={
  148.     Blast="20329976",
  149.     Crown="1323306",
  150.     Ring="3270017",
  151.     Claw="10681506",
  152.     Crystal="9756362",
  153.     Coil="9753878",
  154.     Cloud="1095708",
  155.     Skull="4770583",
  156. }
  157.  
  158. function nooutlines(part)
  159.     part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  160. end
  161.  
  162. function getmesh(mesh)
  163.     return "rbxassetid://"..mesh
  164. end
  165.  
  166. function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype)
  167.     local p = Instance.new("Part", part or workspace)
  168.     p.Anchored = true
  169.     p.CanCollide = false
  170.     p.FormFactor = Enum.FormFactor.Custom
  171.     p.Material = "SmoothPlastic"
  172.     p.CFrame = cframe
  173.     p.BrickColor = brickcolor
  174.     p.Size = Vector3.new(1,1,1)
  175.     p.Transparency = trans
  176.     nooutlines(p)
  177.     local m = Instance.new("SpecialMesh",p)
  178.     if meshtype ~= nil and meshid == nil then
  179.         m.MeshType = meshtype
  180.     end
  181.     if meshtype == nil and meshid ~= nil then
  182.         m.MeshId = getmesh(meshid)
  183.     end
  184.     m.Scale = size
  185.     coroutine.wrap(function()
  186.         for i = 0,loopwait,0.1 do
  187.             p.CFrame = p.CFrame
  188.             p.Transparency = p.Transparency +transincrement
  189.             m.Scale = m.Scale + scaleby
  190.             wait(1/60)
  191.         end
  192.         p:Destroy()
  193.     end)()
  194.     return p
  195. end
  196.  
  197. PlaySound = function(part,volume,pitch,id,looped)
  198.     local Sound = Instance.new("Sound", part)
  199.     Sound.SoundId = id
  200.     Sound.Pitch = pitch
  201.     Sound.Volume = volume
  202.     coroutine.wrap(function()
  203.         wait()
  204.         Sound:Play()
  205.         if looped == nil then
  206.             game.Debris:AddItem(Sound,10)
  207.         end
  208.     end)()
  209.     if looped == true then
  210.         Sound.Looped = true
  211.         ThisSound = Sound
  212.     end
  213. end
  214.  
  215. function GetDistance(Obj,Mag)
  216.     for _,v in pairs(workspace:GetChildren()) do
  217.         if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= Char then
  218.             local Mag2 = (v.Torso.Position - Obj.Position).magnitude
  219.             if Mag2 < Mag then
  220.                 return v
  221.             end
  222.         end
  223.     end
  224. end
  225.  
  226. ShowDmg = function(totake)
  227.     local modl = Instance.new("Model", workspace)
  228.     modl.Name = tostring(totake)
  229.     local prt = Instance.new("Part", modl)
  230.     prt.CanCollide = false
  231.     prt.BrickColor = BrickColor.Red()
  232.     prt.Name = "Head"
  233.     prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0)
  234.     prt.TopSurface = 0
  235.     prt.BottomSurface = 0
  236.     prt.FormFactor = 3
  237.     prt.Size = Vector3.new(1, 0.2, 1)
  238.     local bm = Instance.new("BlockMesh", prt)
  239.     local hum = Instance.new("Humanoid", modl)
  240.     hum.Health = 0
  241.     hum.MaxHealth = 0
  242.     hum.WalkSpeed = 0
  243.     bodypos = Instance.new("BodyPosition", prt)
  244.     bodypos.position = Head.Position +Vector3.new(0, 1, 0)
  245.     bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  246.     game.Debris:AddItem(modl, 1)
  247.     coroutine.resume(coroutine.create(function()
  248.         for i = 1, 3 do
  249.             bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0)
  250.             Rwait()
  251.         end
  252.     end))
  253. end
  254.  
  255. function Damage(hit,mm,knockback)
  256.     if hit ~= nil and hit.Parent ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
  257.         if game.Players:FindFirstChild(hit.Parent) ~= nil and game.Players:FindFirstChild(hit.Parent).TeamColor == "Bright orange" then
  258.             return
  259.         end
  260.         hit.Parent.Humanoid:TakeDamage(mm)
  261.         if knockback ~= nil and knockback ~= 0 then
  262.             local v = Instance.new("BodyVelocity",hit.Parent.Torso)
  263.             v.maxForce = Vector3.new(1e4,0,1e4)
  264.             v.P = 1e20
  265.             v.velocity = HM.CFrame.lookVector *knockback
  266.             game.Debris:AddItem(v,0.1)         
  267.         end
  268.         coroutine.resume(coroutine.create(function()
  269.             ShowDmg(mm)
  270.         end))
  271.         damen = false
  272.     end
  273. end
  274.  
  275. function MagDamage(magnitude,part,damg,knockback,ignoretime)
  276.     if ignoretime == 0 or ignoretime == nil then
  277.         ignoretime = 0.5
  278.     end
  279.     local Body = GetDistance(part,magnitude)
  280.     if Body ~= nil and Body.Humanoid and Body ~= Char and not ignore[Body] then
  281.         ignore[Body] = true
  282.         Body.Humanoid:TakeDamage(damg)
  283.         spawn(function()
  284.             ShowDmg(damg)
  285.         end)
  286.         if knockback ~= nil and Body.Torso ~= nil then
  287.             local v = Instance.new("BodyVelocity",Body.Torso)
  288.             v.maxForce = Vector3.new(1e4,0,1e4)
  289.             v.P = 1e15
  290.             v.velocity = HM.CFrame.lookVector *knockback
  291.             game.Debris:AddItem(v,0.3)
  292.         end
  293.         coroutine.resume(coroutine.create(function()
  294.             wait(ignoretime)
  295.             ignore[Body] = false
  296.         end))
  297.     end
  298. end
  299.  
  300. function Rwait(long)
  301.     if long == 0 or long == nil then
  302.         Run.RenderStepped:wait()
  303.     else
  304.         for i = 0,long do
  305.             Run.RenderStepped:wait()
  306.         end
  307.     end
  308. end
  309.  
  310. function BobTheDancer()
  311.     PlaySound(Hammer,1,1,Sounds[2],true)
  312.     while dancing == true do
  313.         lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0.5,0) *CFrame.Angles(math.pi/1.15,0,math.sin(armangle*0.5)*0.5),armspeed)
  314.         lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0.5,0) *CFrame.Angles(math.pi/1.15,0,math.sin(armangle*0.5)*0.5),armspeed)
  315.         lerp(WLH,WLH.C0,LHC0,legspeed)
  316.         lerp(WRH,WRH.C0,RHC0,legspeed)
  317.         lerp(WRJ,WRJ.C0,RJC0,speed)
  318.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/10,0,-math.sin(angle*0.5)*0.9),speed)
  319.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  320.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  321.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  322.         end
  323.         Rwait()
  324.     end
  325. end
  326.  
  327. function Slash1()
  328.     for i = 1,17 do
  329.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3.5),armspeed)
  330.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.1,0,math.pi/8),armspeed)
  331.         lerp(WLH,WLH.C0,LHC0,legspeed)
  332.         lerp(WRH,WRH.C0,RHC0,legspeed)
  333.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
  334.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3.5),speed)
  335.         lerp(HW,HW.C0,hc0,speed)
  336.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  337.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  338.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  339.         end
  340.         Rwait()
  341.     end
  342.     PlaySound(Hammer,1,1.04,Sounds[1])
  343.     damen = true
  344.     local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
  345.     for i = 1,19 do
  346.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/3.5),armspeed)
  347.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/3,-math.pi/5,math.pi/5),armspeed)
  348.         lerp(WLH,WLH.C0,LHC0,legspeed)
  349.         lerp(WRH,WRH.C0,RHC0,legspeed)
  350.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3.5),speed)
  351.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
  352.         lerp(HW,HW.C0,hc0,speed)
  353.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  354.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  355.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  356.         end
  357.         Rwait()
  358.     end
  359.     Dmgbx:disconnect()
  360.     damen = false
  361. end
  362.  
  363. function Slash2()
  364.     for i = 1,16 do
  365.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/10),armspeed)
  366.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi,0,0),armspeed)
  367.         lerp(WLH,WLH.C0,LHC0,legspeed)
  368.         lerp(WRH,WRH.C0,RHC0,legspeed)
  369.         lerp(WRJ,WRJ.C0,RJC0,speed)
  370.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/3,0,0),speed)
  371.         lerp(HW,HW.C0,hc0,speed)
  372.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  373.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  374.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  375.         end
  376.         Rwait()
  377.     end
  378.     PlaySound(Hammer,1,1.2,Sounds[1])
  379.     damen = true
  380.     local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
  381.     for i = 1,17 do
  382.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(0,0,-math.pi/6),armspeed)
  383.         lerp(WRS,WRS.C0,RSC0,armspeed)
  384.         lerp(WLH,WLH.C0,LHC0,legspeed)
  385.         lerp(WRH,WRH.C0,RHC0,legspeed)
  386.         lerp(WRJ,WRJ.C0,RJC0,speed)
  387.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/3,0,0),speed)
  388.         lerp(HW,HW.C0,hc0,speed)
  389.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  390.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  391.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  392.         end
  393.         Rwait()
  394.     end
  395.     Dmgbx:disconnect()
  396.     damen = false
  397. end
  398.  
  399. function Slash3()
  400.     for i = 1,18 do
  401.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/15),armspeed)
  402.         lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1.5,0,-0.5) *CFrame.Angles(0,math.pi/1.5,math.pi/2),armspeed)
  403.         lerp(WLH,WLH.C0,LHC0,legspeed)
  404.         lerp(WRH,WRH.C0,RHC0,legspeed)
  405.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3),speed)
  406.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3),speed)
  407.         lerp(HW,HW.C0,hc0,speed)
  408.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  409.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  410.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  411.         end
  412.         Rwait()
  413.     end
  414.     PlaySound(Hammer,1,1.2,Sounds[1])
  415.     damen = true
  416.     local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
  417.     for i = 1,20 do
  418.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,-math.pi/4),armspeed)
  419.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/30,math.pi/2),armspeed)
  420.         lerp(WLH,WLH.C0,LHC0,legspeed)
  421.         lerp(WRH,WRH.C0,RHC0,legspeed)
  422.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,-math.pi/3),speed)
  423.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3),speed)
  424.         lerp(HW,HW.C0,hc0,speed)
  425.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  426.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  427.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  428.         end
  429.         Rwait()
  430.     end
  431.     Dmgbx:disconnect()
  432.     damen = false
  433. end
  434.  
  435. function Slash4()
  436.     for i = 1,15 do
  437.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
  438.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/5),armspeed)
  439.         lerp(WLH,WLH.C0,LHC0,legspeed)
  440.         lerp(WRH,WRH.C0,RHC0,legspeed)
  441.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,1,0),speed)
  442.         lerp(Neck,Neck.C0,NC0,speed)
  443.         lerp(HW,HW.C0,hc0,speed)
  444.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  445.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  446.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  447.         end
  448.         Rwait()
  449.     end
  450.     PlaySound(Hammer,1,1.4,Sounds[1])
  451.     damen = true
  452.     local Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(12,20)+extradamage,30) end)
  453.     for i = 0,1.4,0.05 do
  454.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/3),armspeed)
  455.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/2),armspeed)
  456.         lerp(WLH,WLH.C0,LHC0,legspeed)
  457.         lerp(WRH,WRH.C0,RHC0,legspeed)
  458.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1) *CFrame.Angles(0,-math.pi/2,-math.pi*i*2),speed)
  459.         lerp(Neck,Neck.C0,NC0,speed)
  460.         lerp(HW,HW.C0,hc0,speed)
  461.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  462.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  463.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  464.         end
  465.         Rwait()
  466.     end
  467.     Dmgbx:disconnect()
  468.     damen = false
  469. end
  470.  
  471. function HammerSlam()
  472.     for i = 1,20 do
  473.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
  474.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.02,0,0),armspeed)
  475.         lerp(WLH,WLH.C0,LHC0,legspeed)
  476.         lerp(WRH,WRH.C0,RHC0,legspeed)
  477.         lerp(WRJ,WRJ.C0,RJC0,speed)
  478.         lerp(Neck,Neck.C0,NC0,speed)
  479.         lerp(HW,HW.C0,hc0,speed)
  480.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  481.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  482.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  483.         end
  484.         Rwait()
  485.     end
  486.     PlaySound(Hammer,1,0.8,Sounds[1])
  487.     damen = true
  488.     for i = 1,20 do
  489.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
  490.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/30,0,0),armspeed/2)
  491.         lerp(WLH,WLH.C0,LHC0 *CFrame.new(-1,1.5,0),legspeed)
  492.         lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,-math.pi/2),legspeed)
  493.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-1.5),speed)
  494.         lerp(Neck,Neck.C0,NC0,speed)
  495.         lerp(HW,HW.C0,hc0,speed)
  496.         effect(Char,BrickColor.new("Institutional white"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame *CFrame.new(-0.5,0,Hammer.Size.Z/2) *CFrame.Angles(math.pi/2,0,math.pi),0,0.1,Vector3.new(0.05,0.05,0.05),1,Meshes.Blast,nil)
  497.         if i == 16 then
  498.             HammerTouched = Hammer.Touched:connect(function(Hit)
  499.                 if Hit ~= nil and Hit.Parent ~= Char then
  500.                     Damage(Hit,math.random(14,20)+extradamage,40)
  501.                 end
  502.             end)
  503.         end
  504.         Rwait()
  505.     end
  506.     HammerTouched:disconnect()
  507.     damen = false
  508. end
  509.  
  510. function HammerSpin()
  511.     for i = 1,17 do
  512.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/3.5),armspeed)
  513.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,math.pi/1.5,math.pi/2),armspeed)
  514.         lerp(WLH,WLH.C0,LHC0,legspeed)
  515.         lerp(WRH,WRH.C0,RHC0,legspeed)
  516.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
  517.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3.5),speed)
  518.         lerp(HW,HW.C0,hc0,speed)
  519.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  520.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  521.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  522.         end
  523.         Rwait()
  524.     end
  525.     damen = true
  526.     local spinun = 0
  527.     coroutine.wrap(function()
  528.         for i = 1,5 do
  529.             PlaySound(Hammer,1,1.04,Sounds[1])
  530.             Rwait(7)
  531.         end
  532.     end)()
  533.     for i = 1,50 do
  534.         HW.C1 = CFrame.new(0,-spinun-0.5,0)
  535.         MagDamage(3,Hammer,math.random(5,10)+extradamage,30,0.3)
  536.         spinun = spinun +0.5
  537.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/2),armspeed)
  538.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/3.5),armspeed)
  539.         lerp(WLH,WLH.C0,LHC0,legspeed)
  540.         lerp(WRH,WRH.C0,RHC0,legspeed)
  541.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,-1,0) *CFrame.Angles(0,0,math.pi/3.5),speed)
  542.         lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3.5),speed)
  543.         lerp(HW,HW.C0,CFrame.new() *CFrame.Angles(math.pi/2,0,-spinun),speed)
  544.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  545.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  546.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  547.         end
  548.         Rwait()
  549.     end
  550.     HW.C1 = CFrame.new()
  551.     damen = false
  552. end
  553.  
  554. function HammerWheelSpinner()
  555.     for i = 1,15 do
  556.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
  557.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/2,0,math.pi/5),armspeed)
  558.         lerp(WLH,WLH.C0,LHC0,legspeed)
  559.         lerp(WRH,WRH.C0,RHC0,legspeed)
  560.         lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,1,0),speed)
  561.         lerp(Neck,Neck.C0,NC0,speed)
  562.         lerp(HW,HW.C0,hc0,speed)
  563.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  564.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  565.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  566.         end
  567.         Rwait()
  568.     end
  569.     for i = 1,3 do
  570.         PlaySound(Hammer,1,1.4,Sounds[1])
  571.         damen = true
  572.         for i = 0,1,0.05 do
  573.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/8,0,-math.pi/3),armspeed)
  574.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/2),armspeed)
  575.             lerp(WLH,WLH.C0,LHC0,legspeed)
  576.             lerp(WRH,WRH.C0,RHC0,legspeed)
  577.             lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,1) *CFrame.Angles(0,-math.pi/2,-math.pi*i*2),speed)
  578.             lerp(Neck,Neck.C0,NC0,speed)
  579.             lerp(HW,HW.C0,hc0,speed)
  580.             if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  581.                 lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  582.                 lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  583.             end
  584.             if i >= 0.15 and i <= 0.2 then
  585.                 Dmgbx = Hammer.Touched:connect(function(hit) Damage(hit,math.random(7,14)+extradamage,50) end)
  586.             end
  587.             if i >= 0.9 and i <= 1 then
  588.                 damen = false
  589.                 Dmgbx:disconnect()
  590.             end
  591.             Rwait()
  592.         end
  593.     end
  594. end
  595.  
  596. function GoldenHammerMode()
  597.     for i = 1,85 do
  598.         lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/4,0,0),armspeed)
  599.         lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(math.pi/1.1,0,math.pi/5),armspeed)
  600.         lerp(WLH,WLH.C0,LHC0,legspeed)
  601.         lerp(WRH,WRH.C0,RHC0,legspeed)
  602.         lerp(WRJ,WRJ.C0,RJC0,speed)
  603.         lerp(Neck,Neck.C0,NC0,speed)
  604.         lerp(HW,HW.C0,hc0,speed)
  605.         if i == 20 then
  606.             effect(Char,BrickColor.new("Br. yellowish orange"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame,0,0.1,Vector3.new(0.5,0.5,0.5),1,"16198309",nil)
  607.         end
  608.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  609.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  610.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  611.         end
  612.         Rwait()
  613.     end
  614.     coroutine.wrap(function()
  615.         HammerMesh.TextureId = ""
  616.         Hammer.BrickColor = BrickColor.new("Br. yellowish orange")
  617.         Hammer.Reflectance = 0.3
  618.         extradamage = 10
  619.         wait(30)
  620.         goldenmode = false
  621.         effect(Char,BrickColor.new("Br. yellowish orange"),Vector3.new(0.5,0.5,0.5),Hammer.CFrame,0,0.1,Vector3.new(0.5,0.5,0.5),1,"16198309",nil)
  622.         HammerMesh.TextureId = "http://www.roblox.com/asset/?id=16198294"
  623.         Hammer.BrickColor = BrickColor.new("Medium stone grey")
  624.         Hammer.Reflectance = 0
  625.         extradamage = 0
  626.     end)()
  627. end
  628.  
  629. function Selected()
  630.     click = mouse.Button1Down:connect(function()
  631.         if on == false then return end
  632.         coroutine.wrap(function()
  633.             Rwait(400)
  634.             if combo ~= 1 and enabled == true then
  635.                 combo = 1
  636.             end
  637.         end)()
  638.         if on == false then return end
  639.         if combo == 1 and enabled == true then
  640.             enabled = false
  641.             Slash1()
  642.             enabled = true
  643.             combo = 2
  644.         elseif combo == 2 and enabled == true then
  645.             enabled = false
  646.             Slash2()
  647.             enabled = true
  648.             combo = 3
  649.         elseif combo == 3 and enabled == true then
  650.             enabled = false
  651.             Slash3()
  652.             enabled = true
  653.             combo = 4
  654.         elseif combo == 4 and enabled == true then
  655.             enabled = false
  656.             Slash4()
  657.             enabled = true
  658.             combo = 1
  659.         end
  660.     end)
  661.     keys = mouse.KeyDown:connect(function(key)
  662.         key = key:lower()
  663.         if enabled == false then return end
  664.         if key == "f" then
  665.             on = not on
  666.             if on == false then
  667.                 enabled = false
  668.                 for i = 1,10 do
  669.                     lerp(WLS,WLS.C0,LSC0,armspeed)
  670.                     lerp(WRS,WRS.C0,RSC0,armspeed)
  671.                     lerp(WLH,WLH.C0,LHC0,legspeed)
  672.                     lerp(WRH,WRH.C0,RHC0,legspeed)
  673.                     lerp(WRJ,WRJ.C0,RJC0,speed)
  674.                     lerp(Neck,Neck.C0,NC0,speed)
  675.                 end
  676.                 WLS.Parent = nil
  677.                 WRS.Parent = nil
  678.                 WLH.Parent = nil
  679.                 WRH.Parent = nil
  680.                 WRJ.Parent = nil
  681.                 LSH.Parent = T
  682.                 RSH.Parent = T
  683.                 LHH.Parent = T
  684.                 RHH.Parent = T
  685.                 RJC.Parent = HM
  686.                 Neck.C0 = NC0
  687.                 Anim.Parent = Char
  688.                 Animate.Parent = Human
  689.                 HW.C0 = hc0
  690.                 Human.WalkSpeed = 16
  691.                 Human.JumpPower = 50
  692.                 wait(1)
  693.                 enabled = true
  694.             end
  695.             if on == true then
  696.                 enabled = false
  697.                 RJC = RJ:Clone()
  698.                 LSH = LS:Clone()
  699.                 RSH = RS:Clone()
  700.                 LHH = LH:Clone()
  701.                 RHH = RH:Clone()
  702.                 Anim = Char:FindFirstChild("Animate")
  703.                 if Anim ~= nil then
  704.                     Anim.Parent = nil
  705.                 end
  706.                 Animate = Human:FindFirstChild("Animator")
  707.                 if Animate ~= nil then
  708.                     Animate.Parent = nil
  709.                 end
  710.                 WLS.Parent = T
  711.                 WRS.Parent = T
  712.                 WLH.Parent = T
  713.                 WRH.Parent = T
  714.                 WRJ.Parent = T
  715.                 for i = 1,10 do
  716.                     lerp(WLS,WLS.C0,LSC0,armspeed)
  717.                     lerp(WRS,WRS.C0,RSC0,armspeed)
  718.                     lerp(WLH,WLH.C0,LHC0,legspeed)
  719.                     lerp(WRH,WRH.C0,RHC0,legspeed)
  720.                     lerp(WRJ,WRJ.C0,RJC0,speed)
  721.                     lerp(Neck,Neck.C0,NC0,speed)
  722.                 end
  723.                 Human.WalkSpeed = 25
  724.                 Human.JumpPower = 100
  725.                 enabled = true
  726.             end
  727.         end
  728.         if key == "q" and on == true then
  729.             dancing = true
  730.             if dancing == true then
  731.                 enabled = false
  732.                 coroutine.wrap(function()
  733.                     BobTheDancer()
  734.                 end)()
  735.             end
  736.         end
  737.         if key == "z" and on == true and enabled == true then
  738.             enabled = false
  739.             HammerSlam()
  740.             enabled = true
  741.         end
  742.         if key == "x" and on == true and enabled == true then
  743.             enabled = false
  744.             HammerSpin()
  745.             enabled = true
  746.         end
  747.         if key == "c" and on == true and enabled == true then
  748.             enabled = false
  749.             HammerWheelSpinner()
  750.             enabled = true
  751.         end
  752.         if key == "v" and on == true and enabled == true and goldenmode == false then
  753.             enabled = false
  754.             goldenmode = true
  755.             GoldenHammerMode()
  756.             enabled = true
  757.         end
  758.     end)
  759.     keysup = mouse.KeyUp:connect(function(key2)
  760.         if key2 == "q" and dancing == true then
  761.             dancing = false
  762.             enabled = true
  763.             ThisSound:Destroy()
  764.         end
  765.     end)
  766. end
  767.  
  768. function Deselected()
  769.     click:disconnect()
  770.     keys:disconnect()
  771.     keysup:disconnect()
  772. end
  773.  
  774. hopbin.Selected:connect(Selected)
  775. hopbin.Deselected:connect(Deselected)
  776.  
  777. function Cast(Pos,Dir,Amp,IgnoreList)
  778.     return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList)
  779. end
  780.  
  781. while true do
  782.     surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char)
  783.     Human.Health = Human.Health +0.1
  784.     if on == true then
  785.         angle = (angle % 100) +anglespeed/10
  786.         armangle = (armangle % 100) +armanglespeed/10
  787.         legangle = (legangle % 100) +leganglespeed/10
  788.         if action == "Idle" and enabled == true and surface ~= nil then
  789.             lerp(WLS,WLS.C0,LSC0 *CFrame.new(0,0,0.5) *CFrame.Angles(math.pi/2,math.pi/5,0),armspeed)
  790.             lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.1,-0.15,-0.7) *CFrame.Angles(math.pi/2,-math.pi/25+math.sin(armangle)*0.8,-math.pi/2),armspeed)
  791.             lerp(WLH,WLH.C0,LHC0,legspeed)
  792.             lerp(WRH,WRH.C0,RHC0,legspeed)
  793.             lerp(WRJ,WRJ.C0,RJC0,speed)
  794.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25/2)*0.25/5,0,0),speed)
  795.             lerp(HW,HW.C0,hc0,speed)
  796.         end
  797.         if action == "Walk" and enabled == true and surface ~= nil then
  798.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
  799.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,-math.pi/4,0),armspeed)
  800.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  801.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.sin(legangle)),legspeed)
  802.             lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-HM.RotVelocity.Y/12),speed)
  803.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,HM.RotVelocity.Y/12),speed)
  804.             lerp(HW,HW.C0,hc0,speed)
  805.         end
  806.         if HM.Velocity.Y >= 5 and enabled == true and surface == nil then
  807.             action = "Jump"
  808.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
  809.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/5,0,0),armspeed)
  810.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed)
  811.             lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed)
  812.             lerp(WRJ,WRJ.C0,RJC0,speed)
  813.             lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed)
  814.             lerp(HW,HW.C0,hc0,speed)
  815.             Rwait()
  816.         end
  817.         if HM.Velocity.Y <= -5 and enabled == true and surface == nil then
  818.             action = "Fall"
  819.             lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(-math.pi/3,0,0),armspeed)
  820.             lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(-math.pi/3,0,0),armspeed)
  821.             lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/10),legspeed)
  822.             lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/4),legspeed)
  823.             lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(math.pi/8,0,0),speed)
  824.             lerp(Neck,Neck.C0,NC0,speed)
  825.             lerp(HW,HW.C0,hc0,speed)
  826.             Rwait()
  827.         end
  828.         if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then
  829.             action = "Idle"
  830.         elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then
  831.             action = "Walk"
  832.         end
  833.     end
  834.     Rwait()
  835. end
Add Comment
Please, Sign In to add comment