Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pls = game:GetService'Players'
  2. rs = game:GetService'RunService'
  3. uinps = game:GetService'UserInputService'
  4. lp = pls.LocalPlayer
  5. mouse = lp:GetMouse()
  6. c = lp.Character
  7. human = c.Humanoid
  8. critTime = .27
  9.  
  10. --------------------------------------------------------
  11. Player = owner
  12. Character = Player.Character
  13. local txt = Instance.new("BillboardGui", Character)
  14. txt.Adornee = Character.Head
  15. txt.Name = "_status"
  16. txt.Size = UDim2.new(2, 0, 1.2, 0)
  17. txt.StudsOffset = Vector3.new(-9, 8, 0)
  18. local text = Instance.new("TextLabel", txt)
  19. text.Size = UDim2.new(10, 0, 7, 0)
  20. text.FontSize = "Size24"
  21. text.TextScaled = true
  22. text.TextTransparency = 0
  23. text.BackgroundTransparency = 1
  24. text.TextTransparency = 0
  25. text.TextStrokeTransparency = 0
  26. text.Font = "Antique"
  27. text.TextStrokeColor3 = Color3.new(170,0,0)
  28. text.Text = "Asgore Dreemurr"
  29.  
  30. local h = Instance.new("Part",c)
  31. h.Name = "Trident"
  32. h.BrickColor = BrickColor.new(1,0,0)
  33. h.Material = "Neon"
  34. h.Size = Vector3.new(2,1,10)
  35. h.Locked = true
  36. h.CanCollide = false
  37. h.Name = "Handle"
  38. local m = Instance.new("SpecialMesh",h)
  39. m.MeshType = "FileMesh"
  40. m.Scale = Vector3.new(1.5,2.3,2.3)
  41. m.MeshId = "http://www.roblox.com/asset/?id=30694864"
  42. local hw = Instance.new("Motor",c.Torso)
  43. hw.Name = "HandleWeld"
  44. hw.Part0 = c.Torso
  45. hw.Part1 = h
  46. local l = Instance.new("PointLight",h)
  47. l.Range = 15
  48. l.Brightness = .6
  49. l.Color = Color3.new(1,0,0)
  50.  
  51. --------------------------------------------------------
  52.  
  53. Debounces = {
  54. FPS = 0;
  55. Mode = "Still";
  56. Debounce = false;
  57. wasCrit = false;
  58. SwitchingModes = false;
  59. attackNumber = 0;
  60. isAttacking = false;
  61. isMoving = false;
  62. isSprinting = false;
  63. isJumping = false;
  64. isPassive = false;
  65. isTyping = false;
  66. isAgg = false;
  67. musicOn = false;
  68. isCombo = 0;
  69. }
  70.  
  71. --------------------------------------------------------
  72.  
  73. numLerp = function(start, goal, alpha)
  74. return(((goal - start) * alpha) + start)
  75. end
  76.  
  77. CFrameZero = function()
  78. return CFrame.new(Vector3.new())
  79. end
  80.  
  81. rad = function(value)
  82. return math.rad(value)
  83. end
  84.  
  85. CFAngles = function(Vector)
  86. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  87. end
  88.  
  89. --------------------------------------------------------
  90.  
  91. AnimStat = {
  92. lerpSpeed = .2;
  93. }
  94.  
  95. Joints = {
  96. c.HumanoidRootPart.RootJoint;
  97. c.Torso.Neck;
  98. c.Torso['Left Shoulder'];
  99. c.Torso['Right Shoulder'];
  100. c.Torso['Left Hip'];
  101. c.Torso['Right Hip'];
  102. hw;
  103. }
  104.  
  105. JointTargets = {
  106. CFrameZero();
  107. CFrameZero();
  108. CFrameZero();
  109. CFrameZero();
  110. CFrameZero();
  111. CFrameZero();
  112. CFrameZero();
  113. }
  114.  
  115.  
  116. --------------------------------------------------------
  117.  
  118. KG = Instance.new("Sound", game.Players.LocalPlayer.Character)
  119. KG.Volume = 3
  120. KG.SoundId = "rbxassetid://474039958"
  121. KG.Looped = true
  122. KG:Play()
  123.  
  124. human.WalkSpeed = 0
  125. human.JumpPower = 0
  126. human.Animator:Destroy()
  127. human.MaxHealth = 5500
  128. c.Animate:Destroy()
  129. wait()
  130. human.Health = 5500
  131. c.Health:Destroy()
  132. end
  133.  
  134. uinps.InputBegan:connect(function(InputObject)
  135. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  136. Debounces.isPassive = not Debounces.isPassive
  137. end
  138. end)
  139.  
  140. uinps.InputBegan:connect(function(InputObject)
  141. if InputObject.KeyCode == Enum.KeyCode.J and Debounces.isTyping == false then
  142. Debounces.isAgg = not Debounces.isAgg
  143. end
  144. end)
  145.  
  146. uinps.InputBegan:connect(function(InputObject)
  147. if InputObject.KeyCode == Enum.KeyCode.L and Debounces.isTyping == false then
  148. Debounces.musicOn = not Debounces.musicOn
  149. end
  150. end)
  151.  
  152. setJointCFrames = function(table)
  153. for i = 1,#table do
  154. JointTargets[i] = table[i]
  155. end
  156. end
  157.  
  158. setLerp = function(speed)
  159. AnimStat.lerpSpeed = speed
  160. end
  161.  
  162. --------------------------------------------------------
  163.  
  164. prepareCharacter()
  165.  
  166. --------------------------------------------------------
  167.  
  168. spawn(function()
  169. local sine = 0
  170. while wait() do
  171. Debounces.isCombo = Debounces.isCombo + 1/30
  172. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isJumping == false and Debounces.Debounce == false then
  173. setLerp(.2)
  174. if Debounces.isPassive == true then
  175. setJointCFrames({
  176. CFrame.new(Vector3.new(0, -1 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(-5, 0, 0));
  177. CFrame.new(Vector3.new(0, 1.57 + math.sin(tick() * 1.8)/40, -0.18)) * CFAngles(Vector3.new(-13.501 + math.sin(tick() * 1.8 - 1) * 4, 3.663, 0.523));
  178. CFrame.new(Vector3.new(-1.5, 0.069 + math.sin(tick() * 1.8 + 1)/37, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 3.289));
  179. CFrame.new(Vector3.new(1.599, 0.109 + math.sin(tick() * 1.8 + 1)/37, 0.229)) * CFAngles(Vector3.new(-21.149, -1.645, 14.912));
  180. CFrame.new(Vector3.new(-0.63, -1.141 - math.sin(tick() * 1.8)/40, -0.64)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  181. CFrame.new(Vector3.new(0.619, -1.20 - math.sin(tick() * 1.8)/40, 0.78)) * CFAngles(Vector3.new(-61.93, 0.603, 9.809));
  182. CFrame.new(Vector3.new(-0.776, -1.416 + math.sin(tick() * 1.8 + 1)/37, 1.533)) * CFAngles(Vector3.new(11.916 + math.sin(tick() * 1.8) * .4, 15.785, -177.784));
  183. })
  184. else
  185. setJointCFrames({
  186. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(0, 0, 0));
  187. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * 1.8)/60, -0.1)) * CFAngles(Vector3.new(-14.0871 + math.sin(tick() * 1.8 - 1) * 2, -4.516, -0.001));
  188. CFrame.new(Vector3.new(-1.5, -0.001 + math.sin(tick() * 1.8 + 1)/37, -0.4)) * CFAngles(Vector3.new(44.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  189. CFrame.new(Vector3.new(1.599, 0.349 + math.sin(tick() * 1.8 + 1)/37, -0.401)) * CFAngles(Vector3.new(74.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  190. CFrame.new(Vector3.new(-0.63, -2.02 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  191. CFrame.new(Vector3.new(0.569, -2 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(2.093, -9.162, 2.619));
  192. CFrame.new(Vector3.new(-1.586, -0.686 + math.sin(tick() * 1.8 - .3)/20, -1.387)) * CFAngles(Vector3.new(89.739, -74.514, -165.774));
  193. })
  194. end
  195. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isJumping == false and Debounces.Debounce == false then
  196. sine = sine + math.rad(15)
  197. human.WalkSpeed = 15
  198. setLerp(.25)
  199. setJointCFrames({
  200. CFrame.new(Vector3.new(0, math.sin(sine * 2)/17, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  201. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * -1, -0.001));
  202. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0,math.sin(sine - 2) * 2 - 5));
  203. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, math.sin(sine - 2) * 2 + 5));
  204. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  205. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  206. CFrame.new(Vector3.new(-1.176, -.516 + math.sin(-sine)/2.2, 1.133 + math.sin(-sine)/1.6)) * CFAngles(Vector3.new(-22.916 + math.sin(sine) * 23, 11.785, -177.784));
  207. })
  208. elseif Debounces.isJumping == true and Debounces.Debounce == false then
  209. setLerp(.14)
  210. setJointCFrames({
  211. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
  212. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
  213. CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
  214. CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
  215. CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
  216. CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
  217. CFrame.new(Vector3.new(-1.466, -0.716, -1.287)) * CFAngles(Vector3.new(23.713, -68.012, 138.119));
  218. })
  219. end
  220. end
  221. end)
  222.  
  223. human.Changed:connect(function(prop)
  224. if prop == "MoveDirection" then
  225. if human.MoveDirection.magnitude > .02 then
  226. Debounces.isMoving = true
  227. else
  228. Debounces.isMoving = false
  229. end
  230. end
  231. end)
  232.  
  233. changeColor = function(mode)
  234. Debounces.SwitchingModes = true
  235. local color = Color3.new(0,0,0)
  236. if mode == "Still" then
  237. color = Color3.new(1,0,0)
  238. elseif mode == "Blue" then
  239. color = Color3.new(0,1,1)
  240. elseif mode == "Orange" then
  241. color = Color3.new(1,.5,1/5)
  242. elseif mode == "Heal" then
  243. color = Color3.new(.1,1,.1)
  244. end
  245. local s = Instance.new("Sound",h)
  246. s.SoundId = "rbxassetid://262249260"
  247. s.Volume = .5
  248. s.Pitch = math.random(95,105)/100
  249. s:Play()
  250. h.BrickColor = BrickColor.new(color)
  251. local e = Instance.new("Part",h)
  252. e.Size = Vector3.new(1,1,1)
  253. e.BrickColor = BrickColor.new(color)
  254. e.Anchored = false
  255. e.CanCollide = false
  256. local rm = Instance.new("SpecialMesh",e)
  257. rm.MeshType = "FileMesh"
  258. rm.MeshId = "rbxassetid://3270017"
  259. rm.Scale = Vector3.new(3.2,3.2,10)
  260. local ew = Instance.new("Weld",e)
  261. ew.Part0 = h
  262. ew.Part1 = e
  263. ew.C0 = CFrame.new(0,0,-5)
  264. l.Color = color
  265. local timer = 0
  266. while rs.RenderStepped:wait() do
  267. timer = timer + (1/60)/(Debounces.FPS/60)
  268. ew.C0 = ew.C0:lerp(CFrame.new(0,0,5),.08/(Debounces.FPS/60))
  269. e.Transparency = math.sin(ew.C0.p.z/2.5)
  270. if e.Transparency >= .95 then break end
  271. end
  272. e:Destroy()
  273. Debounces.Mode = mode
  274. Debounces.SwitchingModes = false
  275. wait(6)
  276. s:Destroy()
  277. end
  278.  
  279. uinps.InputBegan:connect(function(InputObj)
  280. if InputObj.KeyCode == Enum.KeyCode.Slash then
  281. local finishEvent = nil
  282. Debounces.isTyping = true
  283. finishEvent = uinps.InputBegan:connect(function(InputObj)
  284. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  285. Debounces.isTyping = false
  286. finishEvent:disconnect()
  287. end
  288. end)
  289. end
  290. end)
  291.  
  292. uinps.InputBegan:connect(function(InputObj)
  293. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  294. Debounces.isSprinting = true
  295. end
  296. end)
  297.  
  298. uinps.InputEnded:connect(function(InputObj)
  299. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  300. Debounces.isSprinting = false
  301. end
  302. end)
  303.  
  304. uinps.InputBegan:connect(function(InputObj)
  305. local e = nil
  306. local e2 = nil
  307. if InputObj.UserInputType == Enum.UserInputType.MouseButton1 and Debounces.isJumping == false and Debounces.isAttacking == false then
  308. if Debounces.isCombo <= critTime then
  309. Debounces.wasCrit = true
  310. else
  311. Debounces.wasCrit = false
  312. end
  313. Debounces.attackNumber = Debounces.attackNumber + 1
  314. Debounces.isCombo = 0
  315. Debounces.isAttacking = true
  316. setLerp(.23)
  317. local playAnim = (Debounces.attackNumber)%3 + 1
  318. local frame1 = {
  319. {
  320. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  321. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
  322. CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
  323. CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
  324. CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
  325. CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
  326. CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
  327. };
  328. {
  329. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  330. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
  331. CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
  332. CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
  333. CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
  334. CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
  335. CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
  336. };
  337. {
  338. CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  339. CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
  340. CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
  341. CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
  342. CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
  343. CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
  344. CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  345. };
  346. }
  347. local frame2 = {
  348. {
  349. CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  350. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
  351. CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
  352. CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
  353. CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
  354. CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
  355. CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
  356. };
  357. {
  358. CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  359. CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
  360. CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
  361. CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
  362. CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
  363. CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
  364. CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  365. };
  366. {
  367. CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  368. CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
  369. CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
  370. CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
  371. CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
  372. CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
  373. CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
  374. };
  375. }
  376. if Debounces.wasCrit == false then
  377. local e = Instance.new("Sound",c.Head)
  378. e.Volume = .5
  379. e.SoundId = "rbxassetid://145486992"
  380. e.Pitch = math.random(110,130)/100
  381. e:Play()
  382. setJointCFrames(frame1[playAnim])
  383. setLerp(.35)
  384. wait(.07)
  385. setJointCFrames(frame2[playAnim])
  386. wait(.05)
  387. else
  388. local e = Instance.new("Sound",c.Head)
  389. e.Volume = .5
  390. e.SoundId = "rbxassetid://181894961"
  391. e.Pitch = math.random(130,160)/100
  392. e:Play()
  393. local e2 = Instance.new("Sound",c.Head)
  394. e2.Volume = .6
  395. e2.Pitch = math.random(110,130)/100
  396. e2.SoundId = "rbxassetid://200632875"
  397. e2:Play()
  398. setLerp(.6)
  399. setJointCFrames(frame1[playAnim])
  400. setLerp(.7)
  401. wait(.02)
  402. setJointCFrames(frame2[playAnim])
  403. wait(.01)
  404. end
  405. Debounces.isAttacking = false
  406. end
  407. wait(5)
  408. if e then
  409. e:Destroy()
  410. e2:Destroy()
  411. end
  412. end)
  413.  
  414. uinps.InputBegan:connect(function(InputObj)
  415. if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
  416. Debounces.Debounce = true
  417. human.WalkSpeed = 0
  418. setLerp(.2)
  419. setJointCFrames({
  420. CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  421. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  422. CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  423. CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  424. CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  425. CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  426. CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  427. })
  428. wait(.25)
  429. human.JumpPower = 60
  430. human.Jump = true
  431. Debounces.Debounce = false
  432. human.WalkSpeed = 35
  433. Debounces.isJumping = true
  434. wait()
  435. human.JumpPower = 0
  436. end
  437. end)
  438.  
  439. uinps.InputBegan:connect(function(InputObj)
  440. if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
  441. Debounces.Debounce = true
  442. human.WalkSpeed = 0
  443. setLerp(.2)
  444. setJointCFrames({
  445. CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  446. CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  447. CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  448. CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  449. CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  450. CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  451. CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  452. })
  453. wait(.25)
  454. human.JumpPower = 150
  455. local e = Instance.new("Sound",c.Head)
  456. e.SoundId = "rbxassetid://180204603"
  457. e.Pitch = math.random(90,110)/100
  458. e.Volume = 1
  459. e:Play()
  460. local e2 = Instance.new("Part",h)
  461. e2.Size = Vector3.new(1,1,1)
  462. e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
  463. e2.BrickColor = h.BrickColor
  464. e2.Anchored = true
  465. e2.CanCollide = false
  466. local rm = Instance.new("SpecialMesh",e2)
  467. rm.MeshType = "FileMesh"
  468. rm.MeshId = "rbxassetid://3270017"
  469. rm.Scale = Vector3.new(1,1,6)
  470. human.Jump = true
  471. Debounces.Debounce = false
  472. Debounces.isJumping = true
  473. human.WalkSpeed = 75
  474. wait()
  475. human.JumpPower = 0
  476. while rs.RenderStepped:wait() do
  477. rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
  478. e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
  479. if e2.Transparency >= .98 then
  480. break
  481. end
  482. end
  483. e2:Destroy()
  484. end
  485. end)
  486.  
  487. uinps.InputBegan:connect(function(InputObj)
  488. if Debounces.isTyping == false then
  489. if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.SwitchingModes == false then
  490. changeColor("Still")
  491. elseif InputObj.KeyCode == Enum.KeyCode.X and Debounces.SwitchingModes == false then
  492. changeColor("Blue")
  493. elseif InputObj.KeyCode == Enum.KeyCode.C and Debounces.SwitchingModes == false then
  494. changeColor("Orange")
  495. elseif InputObj.KeyCode == Enum.KeyCode.V and Debounces.SwitchingModes == false then
  496. changeColor("Heal")
  497. end
  498. end
  499. end)
  500.  
  501. h.Touched:connect(function(part)
  502. local h2 = part.Parent:FindFirstChild("Humanoid")
  503. if h2 then
  504. canAttack = "false"
  505. if Debounces.Mode == "Still" then canAttack = "true" end
  506. if Debounces.Mode == "Blue" and part.Velocity.magnitude > 2 then canAttack = "true" end
  507. if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
  508. if Debounces.Mode == "Heal" then canAttack = "heal" end
  509. if canAttack == "true" then
  510. if Debounces.isCombo <= critTime then
  511. h2:TakeDamage(math.random(3,7))
  512. else
  513. h2:TakeDamage(math.random(1,4))
  514. end
  515. elseif canAttack == "heal" then
  516. h2:TakeDamage(math.random(-4,-1))
  517. end
  518. end
  519. end)
  520.  
  521. human.StateChanged:connect(function(os,ns)
  522. if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
  523. Debounces.isJumping = false
  524. end
  525. end)
  526.  
  527. rs.RenderStepped:connect(function()
  528. Debounces.FPS = 1/rs.RenderStepped:wait()
  529. if Debounces.isAgg == true then
  530. fight:Resume()
  531. pass:Pause()
  532. else
  533. fight:Pause()
  534. pass:Resume()
  535. end
  536. if Debounces.musicOn == true then
  537. pass.Volume = 1
  538. fight.Volume = 1
  539. else
  540. pass.Volume = 0
  541. fight.Volume = 0
  542. end
  543. l.Range = math.sin(tick() * 1.8) * 8 + 5
  544. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  545. for i = 1,#Joints do
  546. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  547. Joints[i].C1 = CFrameZero()
  548. end
  549. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement