Advertisement
NoHackJustStevePlayz

Untitled

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