Advertisement
Prozanity

Untitled

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