oskdfoskofksdofk

Untitled

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