oskdfoskofksdofk

Untitled

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