Advertisement
jasonskg1234

-- BurnLegion strikes again! -- wongxd, this is why you DON'

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