Advertisement
Toastymctoast

oooooooooof

May 13th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.04 KB | None | 0 0
  1. -- Toastymctoast edited once again
  2. -- BurnLegion strikes again!
  3. -- wongxd, this is why you DON'T goto Voidacity's
  4. -- SLPM has been absent, so I've taken it upon myself to make something
  5.  
  6. --------------------------------------------------------
  7.  
  8. pls = game:GetService'Players'
  9. rs = game:GetService'RunService'
  10. uinps = game:GetService'UserInputService'
  11. lp = pls.LocalPlayer
  12. mouse = lp:GetMouse()
  13. c = lp.Character
  14. human = c.Humanoid
  15. human.MaxHealth = 100000000000000
  16. wait()
  17. human.Health = 100000000000000
  18. c.Health:Destroy()
  19.  
  20. --------------------------------------------------------
  21.  
  22. Debounces = {
  23. AnimationCycles = 0;
  24. FPS = 0;
  25. scalingDamage = false;
  26. damageLevel = 0;
  27. attackNumber = 0;
  28. isAttacking = false;
  29. isMoving = false;
  30. isSprinting = false;
  31. isBoosting = false;
  32. isPassive = false;
  33. isTyping = false;
  34. }
  35.  
  36. --------------------------------------------------------
  37.  
  38. numLerp = function(start, goal, alpha)
  39. return(((goal - start) * alpha) + start)
  40. end
  41.  
  42. CFrameZero = function()
  43. return CFrame.new(Vector3.new())
  44. end
  45.  
  46. rad = function(value)
  47. return math.rad(value)
  48. end
  49.  
  50. CFAngles = function(Vector)
  51. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  52. end
  53.  
  54. --------------------------------------------------------
  55.  
  56. AnimStat = {
  57. lerpSpeed = .2;
  58. lerpSpeed2 = .35;
  59. lerpTween = 0;
  60. }
  61.  
  62. Joints = {
  63. c.HumanoidRootPart.RootJoint;
  64. c.Torso.Neck;
  65. c.Torso['Left Shoulder'];
  66. c.Torso['Right Shoulder'];
  67. c.Torso['Left Hip'];
  68. c.Torso['Right Hip'];
  69. }
  70.  
  71. JointTargets = {
  72. CFrameZero();
  73. CFrameZero();
  74. CFrameZero();
  75. CFrameZero();
  76. CFrameZero();
  77. CFrameZero();
  78. }
  79.  
  80.  
  81.  
  82. prepareCharacter = function()
  83. local transPoints = {
  84. NumberSequenceKeypoint.new(0,.819,.0375),
  85. NumberSequenceKeypoint.new(.207,.594,.0187),
  86. NumberSequenceKeypoint.new(.4,.55,.031),
  87. NumberSequenceKeypoint.new(.57,.619,.05),
  88. NumberSequenceKeypoint.new(.76,.8,.0375),
  89. NumberSequenceKeypoint.new(1,1,0),
  90. }
  91. local sizePoints = {
  92. NumberSequenceKeypoint.new(0,.687,0),
  93. NumberSequenceKeypoint.new(.111,.875,0),
  94. NumberSequenceKeypoint.new(.327,1.19,0),
  95. NumberSequenceKeypoint.new(.646,1.56,0),
  96. NumberSequenceKeypoint.new(.805,1.37,0),
  97. NumberSequenceKeypoint.new(.905,1.06,0),
  98. NumberSequenceKeypoint.new(.968,.938,0),
  99. NumberSequenceKeypoint.new(.984,1.13,0),
  100. NumberSequenceKeypoint.new(1,1.62,0),
  101. }
  102. local Size = NumberSequence.new(sizePoints)
  103. local Transparency = NumberSequence.new(transPoints)
  104. rayModel = Instance.new("Model",c)
  105. efxBlock = Instance.new("Part",c)
  106. efxBlock.BrickColor = BrickColor.new("Black")
  107. efxBlock.Material = "Neon"
  108. efxBlock.FormFactor = "Custom"
  109. efxBlock.Transparency = .3
  110. efxBlock.Size = Vector3.new(.3,.3,.3)
  111. local mesh = Instance.new("SpecialMesh",efxBlock)
  112. mesh.MeshType = Enum.MeshType.Sphere
  113. mesh.Scale = Vector3.new(1,1,1)
  114. light = Instance.new("PointLight",c.Head)
  115. light.Range = 10
  116. light.Color = Color3.new(0,1/0,1)
  117. light.Shadows = false
  118. local particles = Instance.new("ParticleEmitter",efxBlock)
  119. particles.Color = ColorSequence.new(Color3.new(0,0,0/0),Color3.new(0/0,0/0,0/0))
  120. particles.LightEmission = .95
  121. particles.Size = Size
  122. particles.Name = "Fire"
  123. particles.Transparency = Transparency
  124. particles.LockedToPart = true
  125. particles.VelocityInheritance = .5
  126. particles.LockedToPart = true
  127. particles.Rate = 70
  128. particles.Texture = "rbxassetid://43708993"
  129. particles.Lifetime = NumberRange.new(2,2)
  130. particles.RotSpeed = NumberRange.new(100,100)
  131. particles.Speed = NumberRange.new(7,7)
  132. script.Parent = efxBlock
  133. fire = particles
  134. local offset = Vector3.new(-0.11, .23, -0.5)
  135. local weld = Instance.new("Weld",c.Head)
  136. weld.Part0 = c.Head
  137. weld.Part1 = efxBlock
  138. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  139. efxBlock.Parent = c
  140. local music = Instance.new("Sound",c)
  141. music.SoundId = "rbxassetid://893314717"
  142. music.Looped = true
  143. music.Volume = 3.5
  144. fight = music
  145. local music2 = Instance.new("Sound",c)
  146. music2.SoundId = "rbxassetid://1087215112"
  147. music2.Looped = true
  148. music2.Volume = 3.5
  149. sans = music2
  150. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  151. pointGyro.P = 1e7
  152. pointGyro.D = 1e3
  153. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  154. animator = c.Humanoid:FindFirstChild("Animator")
  155. if animator then
  156. animator:Destroy()
  157. end
  158. c.Torso.roblox:Destroy()
  159. for i,v in pairs (c.Head:children()) do
  160. if v.ClassName == "Sound" then
  161. v:Destroy()
  162. end
  163. end
  164. for i = 1,#Joints do
  165. Joints[i].C1 = CFrame.new(Vector3.new())
  166. end
  167. human.WalkSpeed = 0
  168. human.JumpPower = 0
  169. end
  170.  
  171. uinps.InputBegan:connect(function(InputObject)
  172. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  173. Debounces.isPassive = not Debounces.isPassive
  174. end
  175. end)
  176.  
  177. setJointCFrames = function(table)
  178. for i = 1,#table do
  179. JointTargets[i] = table[i]
  180. end
  181. AnimationCycles = 0
  182. end
  183.  
  184. setLerp = function(speed)
  185. AnimStat.lerpSpeed = speed
  186. end
  187.  
  188. setTween = function(tween)
  189. AnimStat.lerpTween = tween
  190. end
  191.  
  192. takeDamage = function(position,damage,distance,platformStand)
  193. for i,v in pairs (pls:children()) do
  194. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  195. local torso = v.Character:FindFirstChild("Torso")
  196. if torso and (torso.Position - position).magnitude < distance then
  197. v.Character.Humanoid:TakeDamage(damage)
  198. if platformStand == true then
  199. v.Character.PlatformStand = platformStand
  200. end
  201. end
  202. end
  203. end
  204. end
  205.  
  206. --------------------------------------------------------
  207.  
  208. prepareCharacter()
  209.  
  210. --------------------------------------------------------
  211.  
  212. spawn(function()
  213. local sine = 0
  214. while wait() do
  215. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  216. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  217. setLerp(.1)
  218. if Debounces.isPassive == true then
  219. setJointCFrames({
  220. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  221. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  222. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  223. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  224. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  225. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  226. })
  227. else
  228. setJointCFrames({
  229. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  230. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  231. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  232. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  233. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  234. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  235. })
  236. end
  237. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  238. sine = sine + math.rad(12)
  239. human.WalkSpeed = 15
  240. setLerp(.15)
  241. setJointCFrames({
  242. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  243. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  244. 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, 0));
  245. 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, 0));
  246. 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));
  247. 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));
  248. })
  249. end
  250. if Debounces.scalingDamage == true then
  251. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  252. end
  253. end
  254. end)
  255.  
  256. human.Changed:connect(function(prop)
  257. if prop == "MoveDirection" then
  258. if human.MoveDirection.magnitude > .02 then
  259. Debounces.isMoving = true
  260. else
  261. Debounces.isMoving = false
  262. end
  263. end
  264. end)
  265.  
  266. uinps.InputBegan:connect(function(InputObject)
  267. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  268. Debounces.isBoosting = true
  269. Debounces.damageLevel = 5000
  270. Debounces.scalingDamage = true
  271. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  272. setLerp(.15)
  273. setJointCFrames({
  274. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  275. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  276. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  277. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  278. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  279. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  280. })
  281. local boostSpeed = 250
  282. local efx = Instance.new("Sound",c.Head)
  283. efx.SoundId = "rbxassetid://200632875"
  284. efx.Pitch = math.random(1100,1300)/1000
  285. efx.Volume = .5
  286. efx:Play()
  287. spawn(function()
  288. wait(5)
  289. efx:Destroy()
  290. end)
  291. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  292. vel.P = 1e3
  293. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  294. wait(.15)
  295. vel.P = 1000
  296. vel.MaxForce = Vector3.new(3000,0,3000)
  297. vel.Velocity = Vector3.new()
  298. wait(.3)
  299. setLerp(.3)
  300. setJointCFrames({
  301. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  302. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  303. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  304. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  305. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  306. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  307. })
  308. wait(.2)
  309. vel:Destroy()
  310. Debounces.damageLevel = 0
  311. Debounces.scalingDamage = false
  312. Debounces.isBoosting = false
  313. end
  314. end)
  315.  
  316. uinps.InputBegan:connect(function(InputObject)
  317. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  318. Debounces.isBoosting = true
  319. Debounces.damageLevel = 5000
  320. Debounces.scalingDamage = true
  321. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  322. setLerp(.15)
  323. setJointCFrames({
  324. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  325. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  326. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  327. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  328. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  329. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  330. })
  331. local boostSpeed = 250
  332. local efx = Instance.new("Sound",c.Head)
  333. efx.SoundId = "rbxassetid://200632875"
  334. efx.Pitch = math.random(1100,1300)/1000
  335. efx.Volume = .5
  336. efx:Play()
  337. spawn(function()
  338. wait(5)
  339. efx:Destroy()
  340. end)
  341. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  342. vel.P = 1e3
  343. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  344. wait(.15)
  345. vel.P = 1000
  346. vel.MaxForce = Vector3.new(3000,0,3000)
  347. vel.Velocity = Vector3.new()
  348. wait(.3)
  349. setLerp(.3)
  350. setJointCFrames({
  351. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  352. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  353. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  354. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  355. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  356. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  357. })
  358. wait(.2)
  359. vel:Destroy()
  360. Debounces.damageLevel = 0
  361. Debounces.scalingDamage = false
  362. Debounces.isBoosting = false
  363. end
  364. end)
  365.  
  366. uinps.InputBegan:connect(function(InputObject)
  367. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  368. Debounces.isBoosting = true
  369. Debounces.damageLevel = 5000
  370. Debounces.scalingDamage = true
  371. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  372. setLerp(.15)
  373. setJointCFrames({
  374. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  375. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  376. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  377. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  378. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  379. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  380. })
  381. local boostSpeed = 250
  382. local efx = Instance.new("Sound",c.Head)
  383. efx.SoundId = "rbxassetid://200632875"
  384. efx.Pitch = math.random(1100,1300)/1000
  385. efx.Volume = .5
  386. efx:Play()
  387. spawn(function()
  388. wait(5)
  389. efx:Destroy()
  390. end)
  391. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  392. vel.P = 1e3
  393. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  394. wait(.15)
  395. vel.P = 1000
  396. vel.MaxForce = Vector3.new(3000,0,3000)
  397. vel.Velocity = Vector3.new()
  398. wait(.3)
  399. setLerp(.3)
  400. setJointCFrames({
  401. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  402. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  403. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  404. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  405. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  406. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  407. })
  408. wait(.2)
  409. vel:Destroy()
  410. Debounces.damageLevel = 0
  411. Debounces.scalingDamage = false
  412. Debounces.isBoosting = false
  413. end
  414. end)
  415.  
  416. uinps.InputBegan:connect(function(InputObject)
  417. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  418. Debounces.isBoosting = true
  419. Debounces.damageLevel = 5000
  420. Debounces.scalingDamage = true
  421. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  422. setLerp(.15)
  423. setJointCFrames({
  424. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  425. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  426. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  427. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  428. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  429. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  430. })
  431. local boostSpeed = 150
  432. local boostSpeed = 250
  433. local efx = Instance.new("Sound",c.Head)
  434. efx.SoundId = "rbxassetid://200632875"
  435. efx.Pitch = math.random(1100,1300)/1000
  436. efx.Volume = .5
  437. efx:Play()
  438. spawn(function()
  439. wait(5)
  440. efx:Destroy()
  441. end)
  442. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  443. vel.P = 1e3
  444. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  445. wait(.15)
  446. vel.P = 1000
  447. vel.MaxForce = Vector3.new(3000,0,3000)
  448. vel.Velocity = Vector3.new()
  449. wait(.3)
  450. setLerp(.3)
  451. setJointCFrames({
  452. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  453. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  454. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  455. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  456. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  457. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  458. })
  459. wait(.2)
  460. vel:Destroy()
  461. Debounces.damageLevel = 0
  462. Debounces.scalingDamage = false
  463. Debounces.isBoosting = false
  464. end
  465. end)
  466.  
  467. uinps.InputBegan:connect(function(InputObject)
  468. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  469. local isLooping = true
  470. uinps.InputEnded:connect(function(InputObject2)
  471. if InputObject2.KeyCode == Enum.KeyCode.Q then
  472. isLooping = false
  473. end
  474. end)
  475. while true do
  476. if isLooping == false then
  477. break
  478. end
  479. Debounces.attackNumber = Debounces.attackNumber + 1
  480. local aimPos = mouse.Hit.p
  481. local head = Instance.new("Part",c)
  482. head.Size = Vector3.new(12,.2,12)
  483. head.CanCollide = false
  484. head.Anchored = true
  485. head.Transparency = 1
  486. for i = 1,2 do
  487. local decal = Instance.new("Decal",head)
  488. decal.Texture = "rbxassetid://1350472031"
  489. if i == 1 then
  490. decal.Face = Enum.NormalId.Top
  491. else
  492. decal.Face = Enum.NormalId.Bottom
  493. end
  494. end
  495. if Debounces.attackNumber%2 == 1 then
  496. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  497. else
  498. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  499. end
  500. spawn(function()
  501. local timer = 0
  502. while rs.RenderStepped:wait() do
  503. if timer >= 1.55 then
  504. break
  505. end
  506. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  507. timer = timer + 1/30/(Debounces.FPS/60)
  508. end
  509. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  510. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  511. local hit, pos = workspace:FindPartOnRay(ray,c)
  512. local dis = (head.CFrame.p - pos).magnitude
  513. local rayPart = Instance.new("Part",rayModel)
  514. rayPart.Material = "Neon"
  515. rayPart.FormFactor = "Custom"
  516. rayPart.BrickColor = BrickColor.new(42, 35, 186)
  517. rayPart.Anchored = true
  518. rayPart.CanCollide = false
  519. rayPart.Size = Vector3.new(7,7,dis + 400)
  520. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  521. rayPart.CFrame = rayCFrame
  522. head:Destroy()
  523. end)
  524. wait()
  525. local s = Instance.new("Sound",head)
  526. s.Volume = 1
  527. s.SoundId = "rbxassetid://332223043"
  528. s:Play()
  529. wait(.04)
  530. end
  531. end
  532. end)
  533.  
  534. uinps.InputBegan:connect(function(InputObj)
  535. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  536. Debounces.isAttacking = true
  537. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  538. local head = Instance.new("Part",c)
  539. head.Size = Vector3.new(18,.2,18)
  540. head.CanCollide = false
  541. head.Anchored = true
  542. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  543. head.Transparency = 1
  544. for i = 1,2 do
  545. local decal = Instance.new("Decal",head)
  546. decal.Texture = "rbxassetid://1350472031"
  547. if i == 1 then
  548. decal.Face = Enum.NormalId.Top
  549. else
  550. decal.Face = Enum.NormalId.Bottom
  551. end
  552. end
  553. setLerp(.1)
  554. setJointCFrames({
  555. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  556. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  557. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  558. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  559. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  560. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  561. })
  562. spawn(function()
  563. local timer = 0
  564. while rs.RenderStepped:wait() do
  565. if timer >= 1.55/.8 then
  566. break
  567. end
  568. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  569. timer = timer + 1/30/(Debounces.FPS/60)
  570. end
  571. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  572. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  573. local hit, pos = workspace:FindPartOnRay(ray,c)
  574. local dis = (head.CFrame.p - pos).magnitude
  575. local rayPart = Instance.new("Part",rayModel)
  576. rayPart.Material = "Neon"
  577. rayPart.FormFactor = "Custom"
  578. rayPart.Name = "Punch"
  579. rayPart.BrickColor = BrickColor.new(42, 35, 186)
  580. rayPart.Anchored = true
  581. rayPart.CanCollide = false
  582. rayPart.Size = Vector3.new(28,28,dis + 400)
  583. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  584. rayPart.CFrame = rayCFrame
  585. head:Destroy()
  586. end)
  587. wait()
  588. local s = Instance.new("Sound",head)
  589. s.Volume = 1
  590. s.SoundId = "rbxassetid://332223043"
  591. s.Pitch = .8
  592. s:Play()
  593. wait(.75)
  594. setLerp(.17)
  595. setJointCFrames({
  596. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  597. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  598. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  599. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  600. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  601. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  602. })
  603. wait(.5)
  604. Debounces.isAttacking = false
  605. end
  606. end)
  607.  
  608. reflect = function(d,n)
  609. local i, n = -1 * d.unit, n.unit
  610. local dot = n:Dot(i)
  611. return 2*dot*n - i
  612. end
  613.  
  614. makeReflectionBeam = function(pos,look,isCrit)
  615. local ray = Ray.new(pos,look)
  616. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  617. local e = Instance.new("Part",rayModel)
  618. e.Anchored = true
  619. e.CanCollide = false
  620. e.BrickColor = BrickColor.new("Lavender")
  621. e.Material = "Neon"
  622. e.FormFactor = "Custom"
  623. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  624. if isCrit == true then
  625. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  626. e.Name = "Punch"
  627. end
  628. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  629. local e = Instance.new("Sound",c)
  630. if isCrit == true then
  631. e.Volume = .5
  632. else
  633. e.Volume = .3
  634. e.Pitch = 1.5
  635. end
  636. e.SoundId = "rbxassetid://200632875"
  637. e:Play()
  638. spawn(function()
  639. wait(6)
  640. e:Destroy()
  641. end)
  642. wait(.05)
  643. if hit ~= nil then
  644. newDir = reflect(look.unit,norm,isCrit)
  645. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  646. end
  647. end
  648.  
  649. uinps.InputBegan:connect(function(InputObject)
  650. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  651. local isLooping = true
  652. uinps.InputEnded:connect(function(InputObject2)
  653. if InputObject2.KeyCode == Enum.KeyCode.Q then
  654. isLooping = false
  655. end
  656. end)
  657. while true do
  658. if isLooping == false then
  659. break
  660. end
  661. Debounces.attackNumber = Debounces.attackNumber + 1
  662. local aimPos = mouse.Hit.p
  663. local head = Instance.new("Part",c)
  664. head.Size = Vector3.new(12,.2,12)
  665. head.CanCollide = false
  666. head.Anchored = true
  667. head.Transparency = 1
  668. for i = 1,2 do
  669. local decal = Instance.new("Decal",head)
  670. decal.Texture = "rbxassetid://1350472031"
  671. if i == 1 then
  672. decal.Face = Enum.NormalId.Top
  673. else
  674. decal.Face = Enum.NormalId.Bottom
  675. end
  676. end
  677. if Debounces.attackNumber%2 == 1 then
  678. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  679. else
  680. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  681. end
  682. spawn(function()
  683. local timer = 0
  684. while rs.RenderStepped:wait() do
  685. if timer >= 1.55 then
  686. break
  687. end
  688. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  689. timer = timer + 1/30/(Debounces.FPS/60)
  690. end
  691. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  692. head:Destroy()
  693. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  694. end)
  695.  
  696. wait()
  697. local s = Instance.new("Sound",head)
  698. s.Volume = 2
  699. s.SoundId = "rbxassetid://332223043"
  700. s.Pitch = 1.02
  701. s:Play()
  702. wait(.2)
  703. end
  704. end
  705. end)
  706.  
  707. uinps.InputBegan:connect(function(InputObj)
  708. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  709. Debounces.isAttacking = true
  710. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  711. local head = Instance.new("Part",c)
  712. head.Size = Vector3.new(18,.2,18)
  713. head.CanCollide = false
  714. head.Anchored = true
  715. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  716. head.Transparency = 1
  717. for i = 1,2 do
  718. local decal = Instance.new("Decal",head)
  719. decal.Texture = "rbxassetid://1350472031"
  720. if i == 1 then
  721. decal.Face = Enum.NormalId.Top
  722. else
  723. decal.Face = Enum.NormalId.Bottom
  724. end
  725. end
  726. setLerp(.1)
  727. setJointCFrames({
  728. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  729. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  730. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  731. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  732. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  733. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  734. })
  735. spawn(function()
  736. local timer = 0
  737. while rs.RenderStepped:wait() do
  738. if timer >= 1.55/.8 then
  739. break
  740. end
  741. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  742. timer = timer + 1/30/(Debounces.FPS/60)
  743. end
  744. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  745. head:Destroy()
  746. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  747. end)
  748. wait()
  749. local s = Instance.new("Sound",head)
  750. s.Volume = 2
  751. s.SoundId = "rbxassetid://332223043"
  752. s.Pitch = .8
  753. s:Play()
  754. wait(.75)
  755. setLerp(.17)
  756. setJointCFrames({
  757. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  758. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  759. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  760. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  761. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  762. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  763. })
  764. wait(.5)
  765. Debounces.isAttacking = false
  766. end
  767. end)
  768.  
  769. uinps.InputBegan:connect(function(InputObj)
  770. if InputObj.KeyCode == Enum.KeyCode.Slash then
  771. local finishEvent = nil
  772. Debounces.isTyping = true
  773. finishEvent = uinps.InputBegan:connect(function(InputObj)
  774. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  775. Debounces.isTyping = false
  776. finishEvent:disconnect()
  777. end
  778. end)
  779. end
  780. end)
  781.  
  782. uinps.InputBegan:connect(function(InputObj)
  783. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  784. Debounces.isSprinting = true
  785. end
  786. end)
  787.  
  788. uinps.InputEnded:connect(function(InputObj)
  789. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  790. Debounces.isSprinting = false
  791. end
  792. end)
  793.  
  794. rs.RenderStepped:connect(function()
  795. Debounces.FPS = 1/rs.RenderStepped:wait()
  796. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  797. if Debounces.isPassive == false then
  798. fire.Enabled = false
  799. light.Range = 0
  800. fight:Pause()
  801. sans:Resume()
  802. efxBlock.Transparency = 1
  803. else
  804. fire.Enabled = true
  805. light.Range = 10
  806. fight:Resume()
  807. sans:Pause()
  808. efxBlock.Transparency = 0
  809. end
  810. for i,v in pairs (rayModel:children()) do
  811. if v.Transparency >= 1 then
  812. v:Destroy()
  813. else
  814. v.CanCollide = true
  815. local parts = v:GetTouchingParts()
  816. v.CanCollide = false
  817. for i = 1,#parts do
  818. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  819. parts[i].Parent.Humanoid:TakeDamage(5000.5/(Debounces.FPS/60))
  820. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  821. parts[i].Parent.Humanoid:TakeDamage(1000.1/(Debounces.FPS/60))
  822. end
  823. end
  824. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  825. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  826. end
  827. end
  828. for i = 1,#Joints do
  829. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  830. end
  831. local sineval = math.sin(tick() * 2) * 3
  832. fire.Acceleration = Vector3.new(sineval,1,sineval)
  833. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  834. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement