Advertisement
Guest User

fixed?

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