Dark_EccentricYT

Untitled

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