Advertisement
Nathan_Gaming

sadasdsa

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