Advertisement
JRKPastesBins

Untitled

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