lafur

Untitled

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