Advertisement
Dark_EccentricYT

Untitled

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