Advertisement
c00lkidd

Genosans [Leaked by CLarramore]

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