Advertisement
Mr-Shadow_Cat

Andre Script

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