Advertisement
Guest User

C

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