Time4Scripts

Untitled

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