Advertisement
StarzoZero

Roblox NON FE Sans Script

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