Advertisement
GojiGaming1337

Untitled

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