Mr-Shadow_Cat

Nill hammer

Nov 7th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.94 KB | None | 0 0
  1. -- Services --
  2. CV="White"
  3.  
  4. p = game.Players.LocalPlayer
  5. char = p.Character
  6. local txt = Instance.new("BillboardGui", char)
  7. txt.Adornee = char .Head
  8. txt.Name = "_status"
  9. txt.Size = UDim2.new(2, 0, 1.2, 0)
  10. txt.StudsOffset = Vector3.new(-9, 8, 0)
  11. local text = Instance.new("TextLabel", txt)
  12. text.Size = UDim2.new(10, 0, 7, 0)
  13. text.FontSize = "Size24"
  14. text.TextScaled = true
  15. text.TextTransparency = 0
  16. text.BackgroundTransparency = 1
  17. text.TextTransparency = 0
  18. text.TextStrokeTransparency = 1
  19. text.Font = "Arcade"
  20. text.TextStrokeColor3 = Color3.new(0,0,255)
  21.  
  22. v=Instance.new("Part")
  23. v.Name = "ColorBrick"
  24. v.Parent=p.Character
  25. v.FormFactor="Symmetric"
  26. v.Anchored=true
  27. v.CanCollide=false
  28. v.BottomSurface="Smooth"
  29. v.TopSurface="Smooth"
  30. v.Size=Vector3.new(10,5,3)
  31. v.Transparency=1
  32. v.CFrame=char.Torso.CFrame
  33. v.BrickColor=BrickColor.new(CV)
  34. v.Transparency=1
  35. text.TextColor3 = Color3.new(0,255,255)
  36. v.Shape="Block"
  37. text.Text = "Nill Hammer"
  38. coroutine.wrap(function()
  39. while wait() do
  40. wait(3)
  41. text.Text = "So cold"
  42. wait()
  43. text.Text = "Nill Hammer";
  44. wait(2)
  45. local str = ""
  46. for i = 1, math.random(3,25) do
  47. str = str..string.char(math.random(65,122))
  48. end
  49. text.Text = str
  50. wait()
  51. str = ""
  52. for i = 1, math.random(12,25) do
  53. str = str..string.char(math.random(48,122))
  54. end
  55. wait()
  56. text.Text = str
  57. wait()
  58. text.Text = "Nill Hammer";
  59. wait(1)
  60. text.Text = "THE PAIN"
  61. wait()
  62. text.Text = "Dark Darker Yet Darker"
  63. wait()
  64. text.Text = "Nill Hammer";
  65. wait(2)
  66. text.Text = "You made me do this.";
  67. wait()
  68. text.Text = "Its too late";
  69. wait()
  70. for i = 1, math.random(12,25) do
  71. str = str..string.char(math.random(48,57))
  72. end
  73. text.Text = str
  74. wait()
  75. text.Text = "Nill Hammer";
  76. wait(2)
  77. end
  78. end)()
  79.  
  80. local Player = game:GetService("Players").LocalPlayer
  81. local RunService = game:GetService("RunService")
  82. local InputService = game:GetService("UserInputService")
  83. local ChatService = game:GetService("Chat")
  84. local Mouse = Player:GetMouse()
  85. -- Variables --
  86. local Character = Player.Character
  87. local Torso = Character.Torso
  88. local Head = Character.Head
  89. local HammerHandleWeld = Character.HumanoidRootPart
  90. local Humanoid = Character:FindFirstChild("Humanoid")
  91. local Parts = Instance.new("Model",Character)
  92. local clickDebounce = false
  93. local hitBoxEnabled = false
  94. local comboFlag = 0
  95. local comboFlag2 = 0
  96. Humanoid.WalkSpeed = 10
  97. Humanoid.Health = 1000
  98. Humanoid.MaxHealth = 1000
  99. Humanoid.JumpPower = 0
  100. Parts.Name = "Hammer"
  101. -- Hammer --
  102. HammerHandle = Instance.new("Part",Parts)
  103. HammerHandle.Size = Vector3.new(7.7,0.25,0.25)
  104. HammerHandle.BrickColor = BrickColor.new("Black")
  105. HammerHandle.Anchored = false
  106. HammerHandle.Locked = true
  107. HammerHandle.Material = "Wood"
  108. HammerHandle.CanCollide = false
  109.  
  110. HammerBlock1 = Instance.new("Part",Parts)
  111. HammerBlock1.Locked = true
  112. HammerBlock1.Size = Vector3.new(1.74,4.20,1.74)
  113. HammerBlock1.BrickColor = BrickColor.new("Black")
  114. HammerBlock1.Anchored = false
  115. HammerBlock1.Material = "Neon"
  116. HammerBlock1.CanCollide = false
  117. HammerBlock1.Locked = true
  118.  
  119. HammerBlock2 = Instance.new("Part",Parts)
  120. HammerBlock2.Size = Vector3.new(1.54,4.45,1.54)
  121. HammerBlock2.BrickColor = BrickColor.new("Dark stone grey")
  122. HammerBlock2.Anchored = false
  123. HammerBlock2.Locked = true
  124. HammerBlock2.Material = "Neon"
  125. HammerBlock2.CanCollide = false
  126.  
  127. HammerBlock3 = Instance.new("Part",Parts)
  128. HammerBlock3.Size = Vector3.new(2,1,2)
  129. HammerBlock3.BrickColor = BrickColor.new("Dark stone grey")
  130. HammerBlock3.Anchored = false
  131. HammerBlock3.Locked = true
  132. HammerBlock3.Material = "Neon"
  133. HammerBlock3.CanCollide = false
  134.  
  135. HammerBlock4 = Instance.new("Part",Parts)
  136. HammerBlock4.Size = Vector3.new(2,1,2)
  137. HammerBlock4.BrickColor = BrickColor.new("Dark stone grey")
  138. HammerBlock4.Anchored = false
  139. HammerBlock4.Locked = true
  140. HammerBlock4.Material = "Neon"
  141. HammerBlock4.CanCollide = false
  142.  
  143. HammerBlock5 = Instance.new("Part",Parts)
  144. HammerBlock5.Size = Vector3.new(1.9,1,1.9)
  145. HammerBlock5.BrickColor = BrickColor.new("Really black")
  146. HammerBlock5.Anchored = false
  147. HammerBlock5.Locked = true
  148. HammerBlock5.Material = "Wood"
  149. HammerBlock5.CanCollide = false
  150.  
  151. HammerBlock6 = Instance.new("Part",Parts)
  152. HammerBlock6.Size = Vector3.new(1.9,1,1.9)
  153. HammerBlock6.BrickColor = BrickColor.new("Really black")
  154. HammerBlock6.Anchored = false
  155. HammerBlock6.Locked = true
  156. HammerBlock6.Material = "Wood"
  157. HammerBlock6.CanCollide = false
  158.  
  159. HammerBlock7 = Instance.new("Part",Parts)
  160. HammerBlock7.Size = Vector3.new(2.15,0.85,2.1)
  161. HammerBlock7.BrickColor = BrickColor.new("Really black")
  162. HammerBlock7.Anchored = false
  163. HammerBlock7.Locked = true
  164. HammerBlock7.Material = "Wood"
  165. HammerBlock7.CanCollide = false
  166.  
  167. HammerBlock8 = Instance.new("Part",Parts)
  168. HammerBlock8.Size = Vector3.new(2.15,0.85,2.1)
  169. HammerBlock8.BrickColor = BrickColor.new("Really black")
  170. HammerBlock8.Anchored = false
  171. HammerBlock8.Locked = true
  172. HammerBlock8.Material = "Wood"
  173. HammerBlock8.CanCollide = false
  174. HammerHitBox = Instance.new("Part",Parts)
  175. HammerHitBox.Size = Vector3.new(8.2,4.8,2.25)
  176. HammerHitBox.BrickColor = BrickColor.new("Really red")
  177. HammerHitBox.Transparency = 1
  178. HammerHitBox.Anchored = false
  179. HammerHitBox.Locked = true
  180. HammerHitBox.Material = "Neon"
  181. HammerHitBox.CanCollide = false
  182. HammerHitBoxHandle = Instance.new("Part",Parts)
  183. HammerHitBoxHandle.Size = Vector3.new(7.92,0.55,0.55)
  184. HammerHitBoxHandle.BrickColor = BrickColor.new("Really red")
  185. HammerHitBoxHandle.Transparency = 1
  186. HammerHitBoxHandle.Anchored = false
  187. HammerHitBoxHandle.Locked = true
  188. HammerHitBoxHandle.Material = "Neon"
  189. HammerHitBoxHandle.CanCollide = false
  190. HammerSquare1 = Instance.new("Part",Parts)
  191. HammerSquare1.Size = Vector3.new(0.25,0.45,0.45)
  192. HammerSquare1.BrickColor = BrickColor.new("Dark stone grey")
  193. HammerSquare1.Anchored = false
  194. HammerSquare1.Locked = true
  195. HammerSquare1.Material = "Concrete"
  196. HammerSquare1.CanCollide = false
  197. HammerSquare2 = Instance.new("Part",Parts)
  198. HammerSquare2.Size = Vector3.new(0.25,0.45,0.45)
  199. HammerSquare2.BrickColor = BrickColor.new("Dark stone grey")
  200. HammerSquare2.Anchored = false
  201. HammerSquare2.Locked = true
  202. HammerSquare2.Material = "Concrete"
  203. HammerSquare2.CanCollide = false
  204. HammerSwing1 = Instance.new("Sound",HammerHitBox)
  205. HammerSwing1.SoundId = "rbxassetid://145486992"
  206. HammerSwing1.Volume = 1
  207. HammerSwing2 = Instance.new("Sound",HammerHitBox)
  208. HammerSwing2.SoundId = "rbxassetid://246930031"
  209. HammerSwing2.Volume = 2
  210. HammerContact = Instance.new("Sound",HammerHitBox)
  211. HammerContact.SoundId = "rbxassetid://130791043"
  212. HammerContact.Volume = 1
  213. HammerContact2 = Instance.new("Sound",HammerHitBox)
  214. HammerContact2.SoundId = "rbxassetid://146163534"
  215. HammerContact2.Volume = 1
  216.  
  217. -- Welds --
  218. local leftArmWeld = Instance.new("Weld",Character["Left Arm"])
  219. local leftLegWeld = Instance.new("Weld",Character["Left Leg"])
  220. local rightArmWeld = Instance.new("Weld",Character["Right Arm"])
  221. local rightLegWeld = Instance.new("Weld",Character["Right Leg"])
  222. local hammerHandleWeld = Instance.new("Weld",Character["Right Arm"])
  223. local hammerBlock1Weld = Instance.new("Weld",hammerHandleWeld)
  224. local hammerBlock2Weld = Instance.new("Weld",hammerHandleWeld)
  225. local hammerBlock3Weld = Instance.new("Weld",hammerHandleWeld)
  226. local hammerBlock4Weld = Instance.new("Weld",hammerHandleWeld)
  227. local hammerBlock5Weld = Instance.new("Weld",hammerHandleWeld)
  228. local hammerBlock6Weld = Instance.new("Weld",hammerHandleWeld)
  229. local hammerBlock7Weld = Instance.new("Weld",hammerHandleWeld)
  230. local hammerBlock8Weld = Instance.new("Weld",hammerHandleWeld)
  231. local hammerHitBoxWeld = Instance.new("Weld",hammerHandleWeld)
  232. local hammerHitBoxHandleWeld = Instance.new("Weld",hammerHandleWeld)
  233. local HammerSquare1Weld = Instance.new("Weld",hammerHandleWeld)
  234. local HammerSquare2Weld = Instance.new("Weld",hammerHandleWeld)
  235. local headWeld = Instance.new("Weld",Head)
  236. local torsoWeld = Instance.new("Weld",Torso)
  237. -- WeldsPartC0 --
  238. leftArmWeld.Part0 = Torso
  239. leftArmWeld.Part1 = Character["Left Arm"]
  240. leftArmWeld.C0 = CFrame.new(-1,0.5,0)
  241. rightArmWeld.Part0 = Torso
  242. rightArmWeld.Part1 = Character["Right Arm"]
  243. rightArmWeld.C0 = CFrame.new(1,0.5,0)
  244. leftLegWeld.Part0 = Torso
  245. leftLegWeld.Part1 = Character["Left Leg"]
  246. leftLegWeld.C0 = CFrame.new(-0.5,-1.0,0)
  247. rightLegWeld.Part0 = Torso
  248. rightLegWeld.Part1 = Character["Right Leg"]
  249. rightLegWeld.C0 = CFrame.new(0.5,-1.0,0)
  250. hammerHandleWeld.Part0 = Character["Right Arm"]
  251. hammerHandleWeld.Part1 = HammerHandle
  252. hammerHandleWeld.C0 = CFrame.new(0,-.90,0)
  253. hammerBlock1Weld.Part0 = HammerHandle
  254. hammerBlock1Weld.Part1 = HammerBlock1
  255. hammerBlock1Weld.C0 = CFrame.new(-2.5,0,0)
  256. hammerBlock2Weld.Part0 = HammerBlock1
  257. hammerBlock2Weld.Part1 = HammerBlock2
  258. hammerBlock2Weld.C0 = CFrame.new(0,0,0)
  259. hammerBlock3Weld.Part0 = HammerBlock1
  260. hammerBlock3Weld.Part1 = HammerBlock3
  261. hammerBlock3Weld.C0 = CFrame.new(0,1.55,0)
  262. hammerBlock4Weld.Part0 = HammerBlock1
  263. hammerBlock4Weld.Part1 = HammerBlock4
  264. hammerBlock4Weld.C0 = CFrame.new(0,-1.55,0)
  265. hammerBlock5Weld.Part0 = HammerBlock1
  266. hammerBlock5Weld.Part1 = HammerBlock5
  267. hammerBlock5Weld.C0 = CFrame.new(0,1,0)
  268. hammerBlock6Weld.Part0 = HammerBlock1
  269. hammerBlock6Weld.Part1 = HammerBlock6
  270. hammerBlock6Weld.C0 = CFrame.new(0,-1,0)
  271. hammerBlock7Weld.Part0 = HammerBlock1
  272. hammerBlock7Weld.Part1 = HammerBlock7
  273. hammerBlock7Weld.C0 = CFrame.new(0,1.7,0)
  274. hammerBlock8Weld.Part0 = HammerBlock1
  275. hammerBlock8Weld.Part1 = HammerBlock8
  276. hammerBlock8Weld.C0 = CFrame.new(0,-1.7,0)
  277. hammerHitBoxWeld.Part0 = HammerBlock1
  278. hammerHitBoxWeld.Part1 = HammerHitBox
  279. hammerHitBoxWeld.C0 = CFrame.new(2.4,0,0)
  280. hammerHitBoxHandleWeld.Part0 = HammerHandle
  281. hammerHitBoxHandleWeld.Part1 = HammerHitBoxHandle
  282. hammerHitBoxHandleWeld.C0 = CFrame.new(0,0,0)
  283. HammerSquare1Weld.Part0 = HammerBlock1
  284. HammerSquare1Weld.Part1 = HammerSquare1
  285. HammerSquare1Weld.C0 = CFrame.new(-.9,0,0)
  286. HammerSquare2Weld.Part0 = HammerBlock1
  287. HammerSquare2Weld.Part1 = HammerSquare2
  288. HammerSquare2Weld.C0 = CFrame.new(.9,0,0)
  289. torsoWeld.Part0 = HammerHandleWeld
  290. torsoWeld.Part1 = Torso
  291. headWeld.Part0 = Torso
  292. headWeld.Part1 = Head
  293. headWeld.C0 = CFrame.new(0,1,0)
  294. --[[
  295. local billboard = Instance.new("BillboardGui")
  296. billboard.Size = UDim2.new(1,0,1,0)
  297. billboard.Parent = HammerSquare1
  298. billboard.AlwaysOnTop = true
  299.  
  300. local frame = Instance.new("Frame",billboard)
  301. frame.BorderSizePixel = 0
  302. frame.Transparency = 1
  303. frame.Size = UDim2.new(1,0,1,0)
  304.  
  305. local image = Instance.new("TextLabel",frame)
  306. image.Size = UDim2.new(1.5,0,1,0)
  307. image.BorderSizePixel = 2
  308. image.TextTransparency = 0
  309. image.TextSize = 35
  310. image.BackgroundTransparency = 1
  311. image.Font = Enum.Font.SourceSansBold
  312. image.TextColor3 = Color3.new(0,0,0)
  313. image.TextStrokeTransparency = 0
  314. image.TextStrokeColor3 = Color3.new(255,255,255)
  315. ]]
  316.  
  317. -- Functions --
  318. local function Debris(x,y,z)
  319. wait(1)
  320. for i = 1,14 do
  321. z.TextTransparency = z.TextTransparency + 0.1
  322. z.TextStrokeTransparency = z.TextStrokeTransparency + 0.1
  323. wait()
  324. end
  325. game:GetService("Debris"):AddItem(x,y)
  326. end
  327. function Chat(playername,pos)
  328. local billboard = Instance.new("BillboardGui")
  329. billboard.Size = UDim2.new(1,0,1,0)
  330. billboard.Parent = HammerSquare1
  331. billboard.AlwaysOnTop = true
  332.  
  333. local frame = Instance.new("Frame",billboard)
  334. frame.BorderSizePixel = 0
  335. frame.Transparency = 1
  336. frame.Size = UDim2.new(1,0,1,0)
  337.  
  338. local image = Instance.new("TextLabel",frame)
  339. image.Size = UDim2.new(1.5,0,1,0)
  340. image.BorderSizePixel = 2
  341. image.TextTransparency = 0
  342. image.TextSize = 35
  343. image.BackgroundTransparency = 1
  344. image.Font = Enum.Font.SourceSansBold
  345. image.TextColor3 = Color3.new(0,0,0)
  346. image.TextStrokeTransparency = 0
  347. image.TextStrokeColor3 = Color3.new(255,255,255)
  348. image.Text = "[ "..playername.." ] has been nil'd."
  349. Spawn(function()
  350. Debris(billboard,1,image)
  351.  
  352. end)
  353. end
  354.  
  355.  
  356. -- Walking Idle --
  357. Spawn(function()
  358. while RunService.Stepped:Wait() do
  359. if hitBoxEnabled == true then
  360. HammerHitBox.Transparency = 0.85
  361. HammerHitBoxHandle.Transparency = 0.85
  362. else
  363. HammerHitBox.Transparency = 01
  364. HammerHitBoxHandle.Transparency = 1
  365. end
  366. local positionSpeed = (HammerHandleWeld.Velocity * Vector3.new(1,0,1)).magnitude
  367. if positionSpeed < 1 then
  368. if clickDebounce == true then repeat wait() until clickDebounce == false end
  369. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(-math.rad(70),math.rad(15),-math.rad(45)),0.2)
  370. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(45),0,math.rad(45) + -math.cos(tick()*4)/17),0.2)
  371. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1 + -math.cos(tick()*4)/17,0) * CFrame.Angles(-math.rad(15),-math.rad(50) + math.cos(tick()*4)/17,0),0.2)
  372. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1 + -math.cos(tick()*4)/17,0) * CFrame.Angles(math.rad(15),-math.rad(50) + math.cos(tick()*4)/17,0),0.2)
  373. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,math.cos(tick()*4)/17,0) * CFrame.Angles(0,math.rad(55),0),0.2)
  374. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
  375. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.2)
  376. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  377. elseif positionSpeed > 1 then
  378. if clickDebounce == true then repeat wait() until clickDebounce == false end
  379. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(-math.rad(120),math.rad(45),math.rad(45)),0.2)
  380. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(45),-math.rad(170),math.rad(160) ),0.2)
  381. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.cos(tick()*6)/2,-math.rad(50),0),0.2)
  382. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.cos(tick()*6)/2,-math.rad(50),0),0.2)
  383. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(55),0),0.2)
  384. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(5),-math.rad(45),0),0.2)
  385. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(45),0,0),0.2)
  386. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  387. end
  388.  
  389. end
  390. end)
  391. --
  392. local lastAttack = 0
  393. local lastHit = ""
  394. function KeyPress(Key)
  395. if Key == Enum.KeyCode.E then
  396. wait()
  397. local t = game:GetService("RunService").Stepped:wait()
  398. if (t - lastAttack) > 0.7 or comboFlag2 == 2 then
  399. comboFlag2 = 0
  400. end
  401. if clickDebounce then return end
  402. clickDebounce = true
  403. if comboFlag2 == 0 then
  404. HammerSwing1:Play()
  405. for i = 1,15 do
  406. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(55),-math.rad(35),math.rad(45)),0.3)
  407. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(120),-math.rad(45),-math.rad(55)),0.3)
  408. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  409. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  410. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
  411. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
  412. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
  413. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
  414. game:GetService("RunService").Stepped:wait()
  415. end
  416. local connection1 = HammerHitBox.Touched:connect(function(hit)
  417. pcall(function()
  418. if hit.Parent == Character then return end
  419. if hit.Parent.Name == lastHit then return end
  420. debounce = true
  421. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  422. if human and debounce then
  423. asd = hit.Parent
  424. lastHit = asd.Name
  425. human:TakeDamage(15)
  426. HammerContact2:Play()
  427. asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
  428. end
  429. end)
  430. end)
  431. lastHit = ""
  432. wait()
  433. for i = 1,9 do -- move 1
  434. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(10),-math.rad(35),math.rad(45)),0.3)
  435. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(100),math.rad(75),-math.rad(0)),0.3)
  436. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  437. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  438. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
  439. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
  440. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
  441. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
  442. game:GetService("RunService").Stepped:wait()
  443. end
  444. connection1:disconnect()
  445. wait(0.35)
  446. clickDebounce = false
  447. debounce = false
  448. comboFlag2 = comboFlag2 + 1
  449. lastAttack = t
  450. elseif comboFlag2 == 1 then
  451. local connection2 = HammerHitBox.Touched:connect(function(hit)
  452. pcall(function()
  453. if hit.Parent == Character then return end
  454. if hit.Parent.Name == lastHit then return end
  455. debounce = true
  456. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  457. if human and debounce then
  458. asd = hit.Parent
  459. lastHit = asd.Name
  460. human:TakeDamage(15)
  461. HammerContact2:Play()
  462. asd:FindFirstChild("Torso").Velocity = Torso.CFrame.lookVector * 200
  463. end
  464. end)
  465. end)
  466. for i = 1,15 do -- move 1
  467. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(10),-math.rad(35),math.rad(45)),0.3)
  468. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(100),math.rad(75),-math.rad(0)),0.3)
  469. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  470. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  471. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(0),0),0.3)
  472. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,math.rad(50),0),0.3)
  473. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
  474. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
  475. game:GetService("RunService").Stepped:wait()
  476. end
  477. wait()
  478. for i = 1,9 do
  479. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,0.5,0) * CFrame.Angles(math.rad(55),-math.rad(35),math.rad(45)),0.3)
  480. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,0.5,0) * CFrame.Angles(-math.rad(120),-math.rad(45),-math.rad(55)),0.3)
  481. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  482. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  483. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(-math.rad(0),-math.rad(35),0),0.3)
  484. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(0,-math.rad(75),0),0.3)
  485. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
  486. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),-math.rad(30)),0.3)
  487. game:GetService("RunService").Stepped:wait()
  488. end
  489. connection2:disconnect()
  490. clickDebounce = false
  491. debounce = false
  492. lastAttack = t
  493. comboFlag2 = comboFlag2 + 1
  494. end
  495.  
  496. elseif Key == Enum.KeyCode.Z then
  497. if hitBoxEnabled == false then
  498. wait(1)
  499. hitBoxEnabled = true
  500. else
  501. hitBoxEnabled = false
  502. end
  503.  
  504. elseif Key == Enum.KeyCode.Q then
  505. wait()
  506. if clickDebounce then return end
  507. clickDebounce = true
  508. local connection1 = HammerHitBox.Touched:connect(function(hit)
  509. pcall(function()
  510. if hit.Parent == Character then return end
  511. if hit.Parent.Name == lastHit then return end
  512. debounce = true
  513. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  514. if human and debounce then
  515. asd = hit.Parent
  516. lastHit = asd.Name
  517. HammerContact:Play()
  518. asd.Parent = nil
  519. if asd.Parent == nil then
  520. Chat(asd.Name)
  521. end
  522. end
  523. end)
  524. end)
  525. lastHit = ""
  526. HammerSwing1:Play()
  527. for i = 1,15 do
  528. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(190),-math.rad(0),math.rad(35)),0.3)
  529. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(190),math.rad(0),-math.rad(35)),0.3)
  530. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
  531. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.3)
  532. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,-3,0) * CFrame.Angles(-math.rad(35),-math.rad(0),0),0.3)
  533. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.3)
  534. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.3)
  535. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0.5,0) * CFrame.Angles(math.rad(5),math.rad(90),math.rad(0)),0.3)
  536. game:GetService("RunService").Stepped:wait()
  537. end
  538. wait(0.25)
  539. HammerSwing2:Play()
  540. for i = 1,9 do -- move 1
  541. leftArmWeld.C1 = leftArmWeld.C1:Lerp(CFrame.new(0.5,1,0) * CFrame.Angles(-math.rad(112),math.rad(25),math.rad(35)),0.2)
  542. rightArmWeld.C1 = rightArmWeld.C1:Lerp(CFrame.new(-0.5,1,0) * CFrame.Angles(-math.rad(112),-math.rad(25),-math.rad(35)),0.2)
  543. leftLegWeld.C1 = leftLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
  544. rightLegWeld.C1 = rightLegWeld.C1:Lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(25),-math.rad(0),0),0.2)
  545. torsoWeld.C1 = torsoWeld.C1:Lerp(CFrame.new(0,3,0) * CFrame.Angles(math.rad(145),-math.rad(0),0),0.2)
  546. headWeld.C1 = headWeld.C1:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(0),-math.rad(0),0),0.2)
  547. hammerBlock1Weld.C1 = hammerBlock1Weld.C1:Lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(104),0,0),0.2)
  548. hammerHandleWeld.C1 = hammerHandleWeld.C1:Lerp(CFrame.new(2.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(60)),0.2)
  549. game:GetService("RunService").Stepped:wait()
  550. end
  551. connection1:disconnect()
  552. wait(0.35)
  553. clickDebounce = false
  554. debounce = false
  555. end
  556. end
  557.  
  558. if InputService.KeyboardEnabled then
  559. function onInput(input,processed)
  560. if input.UserInputType == Enum.UserInputType.Keyboard then
  561. KeyPress(input.KeyCode)
  562.  
  563. end
  564. end
  565. end
  566. InputService.InputBegan:connect(onInput)
  567. InputService.InputChanged:connect(onInput)
Add Comment
Please, Sign In to add comment