Advertisement
replic8

EditingSansNOTCOMPLETE3

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