Advertisement
JRKPastesBins

Untitled

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