oskdfoskofksdofk

Untitled

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