Advertisement
Prozanity

Untitled

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