oskdfoskofksdofk

Untitled

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