Advertisement
DarkScriptZEditors

Untitled

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