Advertisement
ThatOneGuy561

Untitled

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