HenloMyDude

asgore

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