Advertisement
StarzoZero

roblox fe sans attempt #6

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