Advertisement
replic8

EditingSansNOTCOMPLETE2

May 31st, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.95 KB | None | 0 0
  1. -- I want everyone to know about this script so please spread. kthx bye
  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 = 378201909"
  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(.90,.10,.10),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
  430.  
  431. then
  432. if v.Character.Humanoid.MaxHealth > 1000 then
  433. v.Character.Humanoid.MaxHealth = 100;
  434. v.Character.Humanoid.Breakjoints()
  435. end
  436.  
  437.  
  438. v.Character.Humanoid:TakeDamage(damage)
  439. if platformStand == true then
  440. v.Character.PlatformStand = platformStand
  441. end
  442. end
  443. end
  444. end
  445. end
  446.  
  447. --------------------------------------------------------
  448.  
  449. prepareCharacter()
  450.  
  451. --------------------------------------------------------
  452.  
  453. spawn(function()
  454. local sine = 0
  455. while wait() do
  456. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -
  457.  
  458. c.HumanoidRootPart.CFrame.p).unit * 100)
  459. if Debounces.isAttacking == false and Debounces.isMoving == false and
  460.  
  461. Debounces.isBoosting == false then
  462. setLerp(.1)
  463. if Debounces.isPassive == true then
  464. setJointCFrames({
  465. CFrame.new(Vector3.new(0, 0 + math.sin(tick() *
  466.  
  467. 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  468. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() *
  469.  
  470. -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) *
  471.  
  472. 1.5) * 5, -0.001, -0.001));
  473. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin
  474.  
  475. (tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  476. CFrame.new(Vector3.new(1.059, -0.031 + math.sin
  477.  
  478. (tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  479. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) *
  480.  
  481. CFAngles(Vector3.new(0, 8.885, 0));
  482. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) *
  483.  
  484. CFAngles(Vector3.new(-0.001, -8.886, 0));
  485. })
  486. else
  487. setJointCFrames({
  488. CFrame.new(Vector3.new(0, 0 + math.sin(tick() *
  489.  
  490. 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  491. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() *
  492.  
  493. -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) *
  494.  
  495. 1.5) * 5, -0.001, -0.001));
  496. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin
  497.  
  498. (tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  499. CFrame.new(Vector3.new(1.059, -0.031 + math.sin
  500.  
  501. (tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  502. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) *
  503.  
  504. CFAngles(Vector3.new(0, 8.885, 0));
  505. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) *
  506.  
  507. CFAngles(Vector3.new(-0.001, -8.886, 0));
  508. })
  509. end
  510. elseif Debounces.isAttacking == false and Debounces.isMoving == true and
  511.  
  512. Debounces.isBoosting == false then
  513. sine = sine + math.rad(12)
  514. human.WalkSpeed = 15
  515. setLerp(.15)
  516. setJointCFrames({
  517. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new
  518.  
  519. (0, math.sin(sine) * -2.5, 0));
  520. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles
  521.  
  522. (Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  523. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20,
  524.  
  525. 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  526. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20,
  527.  
  528. 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  529. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7,
  530.  
  531. 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  532. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7,
  533.  
  534. 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  535. })
  536. end
  537. if Debounces.scalingDamage == true then
  538. takeDamage
  539.  
  540. (c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  541. end
  542. end
  543. end)
  544.  
  545. human.Changed:connect(function(prop)
  546. if prop == "MoveDirection" then
  547. if human.MoveDirection.magnitude > .02 then
  548. Debounces.isMoving = true
  549. else
  550. Debounces.isMoving = false
  551. end
  552. end
  553. end)
  554.  
  555. uinps.InputBegan:connect(function(InputObject)
  556. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and
  557.  
  558. Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true
  559.  
  560. and Debounces.isTyping == false then
  561. Debounces.isBoosting = true
  562. Debounces.damageLevel = 10
  563. Debounces.scalingDamage = true
  564. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  565. setLerp(.15)
  566. setJointCFrames({
  567. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  568.  
  569. 22.001, 0, 20));
  570. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new
  571.  
  572. (-10.372, 28.758, -1.837));
  573. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles
  574.  
  575. (Vector3.new(45, 0, 45));
  576. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new
  577.  
  578. (-15.001, -15.001, 45));
  579. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-
  580.  
  581. 11.283, -17.801, 19.495));
  582. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new
  583.  
  584. (15, -15, 29.999));
  585. })
  586. local boostSpeed = 250
  587. local efx = Instance.new("Sound",c.Head)
  588. efx.SoundId = "rbxassetid://200632875"
  589. efx.Pitch = math.random(1100,1300)/1000
  590. efx.Volume = .5
  591. efx:Play()
  592. spawn(function()
  593. wait(5)
  594. efx:Destroy()
  595. end)
  596. vel.Velocity = (c.HumanoidRootPart.Position -
  597.  
  598. c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  599. vel.P = 1e3
  600. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  601. wait(.15)
  602. vel.P = 1000
  603. vel.MaxForce = Vector3.new(3000,0,3000)
  604. vel.Velocity = Vector3.new()
  605. wait(.3)
  606. setLerp(.3)
  607. setJointCFrames({
  608. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  609.  
  610. 22.001, 0, 13));
  611. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new
  612.  
  613. (-30.239, 42.47, 11.879));
  614. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles
  615.  
  616. (Vector3.new(44.999, 0, -45));
  617. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new
  618.  
  619. (-62.058, -21.088, -15.383));
  620. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new
  621.  
  622. (-59.239, -26.158, -14.457));
  623. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new
  624.  
  625. (-0.505, -14.478, -18.968));
  626. })
  627. wait(.2)
  628. vel:Destroy()
  629. Debounces.damageLevel = 0
  630. Debounces.scalingDamage = false
  631. Debounces.isBoosting = false
  632. end
  633. end)
  634.  
  635. uinps.InputBegan:connect(function(InputObject)
  636. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and
  637.  
  638. Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true
  639.  
  640. and Debounces.isTyping == false then
  641. Debounces.isBoosting = true
  642. Debounces.damageLevel = 10
  643. Debounces.scalingDamage = true
  644. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  645. setLerp(.15)
  646. setJointCFrames({
  647. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  648.  
  649. 22.001, 0, -15));
  650. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new
  651.  
  652. (-13.603, -45.662, -6.645));
  653. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new
  654.  
  655. (31.935, -7.436, -60.853));
  656. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-
  657.  
  658. 3.644, -23.448, 59.102));
  659. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-
  660.  
  661. 3.616, -11.936, -29.566));
  662. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles
  663.  
  664. (Vector3.new(1.943, -7.181, -32.528));
  665. })
  666. local boostSpeed = 250
  667. local efx = Instance.new("Sound",c.Head)
  668. efx.SoundId = "rbxassetid://200632875"
  669. efx.Pitch = math.random(1100,1300)/1000
  670. efx.Volume = .5
  671. efx:Play()
  672. spawn(function()
  673. wait(5)
  674. efx:Destroy()
  675. end)
  676. vel.Velocity = (c.HumanoidRootPart.Position -
  677.  
  678. c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  679. vel.P = 1e3
  680. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  681. wait(.15)
  682. vel.P = 1000
  683. vel.MaxForce = Vector3.new(3000,0,3000)
  684. vel.Velocity = Vector3.new()
  685. wait(.3)
  686. setLerp(.3)
  687. setJointCFrames({
  688. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  689.  
  690. 22.001, 0, -13));
  691. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new
  692.  
  693. (-12.936, -46.206, -2.327));
  694. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles
  695.  
  696. (Vector3.new(45, 0, -60));
  697. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new
  698.  
  699. (14.035, -5.69, 35.342));
  700. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new
  701.  
  702. (-55.479, -10.612, 15.729));
  703. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new
  704.  
  705. (14.999, -15, 14.999));
  706. })
  707. wait(.2)
  708. vel:Destroy()
  709. Debounces.damageLevel = 0
  710. Debounces.scalingDamage = false
  711. Debounces.isBoosting = false
  712. end
  713. end)
  714.  
  715. uinps.InputBegan:connect(function(InputObject)
  716. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and
  717.  
  718. Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true
  719.  
  720. and Debounces.isTyping == false then
  721. Debounces.isBoosting = true
  722. Debounces.damageLevel = 10
  723. Debounces.scalingDamage = true
  724. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  725. setLerp(.15)
  726. setJointCFrames({
  727. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  728.  
  729. 40.001, 0, 5));
  730. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles
  731.  
  732. (Vector3.new(25.141, -8.347, 0.878));
  733. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new
  734.  
  735. (14.999, -0.001, 0));
  736. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles
  737.  
  738. (Vector3.new(28.08, -0.358, 21.087));
  739. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new
  740.  
  741. (-29.448, 3.57, -1.5));
  742. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles
  743.  
  744. (Vector3.new(-0.505, -14.478, -3.968));
  745. })
  746. local boostSpeed = 250
  747. local efx = Instance.new("Sound",c.Head)
  748. efx.SoundId = "rbxassetid://200632875"
  749. efx.Pitch = math.random(1100,1300)/1000
  750. efx.Volume = .5
  751. efx:Play()
  752. spawn(function()
  753. wait(5)
  754. efx:Destroy()
  755. end)
  756. vel.Velocity = (c.HumanoidRootPart.Position -
  757.  
  758. c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  759. vel.P = 1e3
  760. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  761. wait(.15)
  762. vel.P = 1000
  763. vel.MaxForce = Vector3.new(3000,0,3000)
  764. vel.Velocity = Vector3.new()
  765. wait(.3)
  766. setLerp(.3)
  767. setJointCFrames({
  768. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-
  769.  
  770. 22.001, 40, -13));
  771. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new
  772.  
  773. (-12.936, -46.206, -2.327));
  774. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles
  775.  
  776. (Vector3.new(45, 0, -60));
  777. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new
  778.  
  779. (14.035, -5.69, 35.342));
  780. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new
  781.  
  782. (-55.479, -10.612, 15.729));
  783. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new
  784.  
  785. (14.999, -15, 14.999));
  786. })
  787. wait(.2)
  788. vel:Destroy()
  789. Debounces.damageLevel = 0
  790. Debounces.scalingDamage = false
  791. Debounces.isBoosting = false
  792. end
  793. end)
  794.  
  795. uinps.InputBegan:connect(function(InputObject)
  796. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and
  797.  
  798. Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true
  799.  
  800. and Debounces.isTyping == false then
  801. Debounces.isBoosting = true
  802. Debounces.damageLevel = 10
  803. Debounces.scalingDamage = true
  804. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  805. setLerp(.15)
  806. setJointCFrames({
  807. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0,
  808.  
  809. 0));
  810. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles
  811.  
  812. (Vector3.new(-5.298, -1.305, -4.093));
  813. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new
  814.  
  815. (12.112, -6.562, -16.939));
  816. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new
  817.  
  818. (8.817, 8.378, 20.465));
  819. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new
  820.  
  821. (-14.432, 3.06, -2.373));
  822. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles
  823.  
  824. (Vector3.new(-0.505, -14.478, -3.968));
  825. })
  826. local boostSpeed = 150
  827. local boostSpeed = 250
  828. local efx = Instance.new("Sound",c.Head)
  829. efx.SoundId = "rbxassetid://200632875"
  830. efx.Pitch = math.random(1100,1300)/1000
  831. efx.Volume = .5
  832. efx:Play()
  833. spawn(function()
  834. wait(5)
  835. efx:Destroy()
  836. end)
  837. vel.Velocity = (c.HumanoidRootPart.Position -
  838.  
  839. c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  840. vel.P = 1e3
  841. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  842. wait(.15)
  843. vel.P = 1000
  844. vel.MaxForce = Vector3.new(3000,0,3000)
  845. vel.Velocity = Vector3.new()
  846. wait(.3)
  847. setLerp(.3)
  848. setJointCFrames({
  849. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0,
  850.  
  851. 0));
  852. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles
  853.  
  854. (Vector3.new(-20.081, 28.752, 3.598));
  855. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles
  856.  
  857. (Vector3.new(59.51, -3.841, -14.511));
  858. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new
  859.  
  860. (-47.597, -13.104, 17.887));
  861. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new
  862.  
  863. (-44.477, 3.836, -0.524));
  864. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles
  865.  
  866. (Vector3.new(-15.868, -12.953, -7.631));
  867. })
  868. wait(.2)
  869. vel:Destroy()
  870. Debounces.damageLevel = 0
  871. Debounces.scalingDamage = false
  872. Debounces.isBoosting = false
  873. end
  874. end)
  875.  
  876. uinps.InputBegan:connect(function(InputObject)
  877. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and
  878.  
  879. Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false
  880.  
  881. then
  882. local isLooping = true
  883. uinps.InputEnded:connect(function(InputObject2)
  884. if InputObject2.KeyCode == Enum.KeyCode.Q then
  885. isLooping = false
  886. end
  887. end)
  888. while true do
  889. if isLooping == false then
  890. break
  891. end
  892. Debounces.attackNumber = Debounces.attackNumber + 1
  893. local aimPos = mouse.Hit.p
  894. local head = Instance.new("Part",c)
  895. head.Size = Vector3.new(12,.2,12)
  896. head.CanCollide = false
  897. head.Anchored = true
  898. head.Transparency = 1
  899. for i = 1,2 do
  900. local decal = Instance.new("Decal",head)
  901. decal.Texture = "rbxassetid://323497117"
  902. if i == 1 then
  903. decal.Face = Enum.NormalId.Top
  904. else
  905. decal.Face = Enum.NormalId.Bottom
  906. end
  907. end
  908. if Debounces.attackNumber%2 == 1 then
  909. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace
  910.  
  911. (CFrame.new(8,8,.5)).p,aimPos)
  912. else
  913. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace
  914.  
  915. (CFrame.new(-8,8,.5)).p,aimPos)
  916. end
  917. spawn(function()
  918. local timer = 0
  919. while rs.RenderStepped:wait() do
  920. if timer >= 1.55 then
  921. break
  922. end
  923. head.CFrame = head.CFrame * CFrame.Angles
  924.  
  925. (0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  926. timer = timer + 1/30/(Debounces.FPS/60)
  927. end
  928. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  929. local ray = Ray.new(head.CFrame.p,(aimPos -
  930.  
  931. head.CFrame.p).unit * 999)
  932. local hit, pos = workspace:FindPartOnRay(ray,c)
  933. local dis = (head.CFrame.p - pos).magnitude
  934. local rayPart = Instance.new("Part",rayModel)
  935. rayPart.Material = "Neon"
  936. rayPart.FormFactor = "Custom"
  937. rayPart.BrickColor = BrickColor.new(1,1,1)
  938. rayPart.Anchored = true
  939. rayPart.CanCollide = false
  940. rayPart.Size = Vector3.new(7,7,dis + 400)
  941. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos -
  942.  
  943. head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  944. rayPart.CFrame = rayCFrame
  945. head:Destroy()
  946. end)
  947. wait()
  948. local s = Instance.new("Sound",head)
  949. s.Volume = 1
  950. s.SoundId = "rbxassetid://332223043"
  951. s:Play()
  952. wait(.04)
  953. end
  954. end
  955. end)
  956.  
  957. uinps.InputBegan:connect(function(InputObj)
  958. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and
  959.  
  960. Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false
  961.  
  962. then
  963. Debounces.isAttacking = true
  964. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-
  965.  
  966. 999)).p
  967. local head = Instance.new("Part",c)
  968. head.Size = Vector3.new(18,.2,18)
  969. head.CanCollide = false
  970. head.Anchored = true
  971. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace
  972.  
  973. (CFrame.new(0,0,-9)).p,aimPos)
  974. head.Transparency = 1
  975. for i = 1,2 do
  976. local decal = Instance.new("Decal",head)
  977. decal.Texture = "rbxassetid://323497117"
  978. if i == 1 then
  979. decal.Face = Enum.NormalId.Top
  980. else
  981. decal.Face = Enum.NormalId.Bottom
  982. end
  983. end
  984. setLerp(.1)
  985. setJointCFrames({
  986. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0,
  987.  
  988. 0));
  989. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new
  990.  
  991. (-11.676, -0.001, -0.001));
  992. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-
  993.  
  994. 12.808, -28.88, -21.502));
  995. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles
  996.  
  997. (Vector3.new(-146.606, 16.571, 13.928));
  998. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles
  999.  
  1000. (Vector3.new(-60, 0, -0.001));
  1001. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new
  1002.  
  1003. (-15.001, -15.001, 0));
  1004. })
  1005. spawn(function()
  1006. local timer = 0
  1007. while rs.RenderStepped:wait() do
  1008. if timer >= 1.55/.8 then
  1009. break
  1010. end
  1011. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad
  1012.  
  1013. (timer * 25/(Debounces.FPS/60)))
  1014. timer = timer + 1/30/(Debounces.FPS/60)
  1015. end
  1016. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1017. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit *
  1018.  
  1019. 999)
  1020. local hit, pos = workspace:FindPartOnRay(ray,c)
  1021. local dis = (head.CFrame.p - pos).magnitude
  1022. local rayPart = Instance.new("Part",rayModel)
  1023. rayPart.Material = "Neon"
  1024. rayPart.FormFactor = "Custom"
  1025. rayPart.Name = "Punch"
  1026. rayPart.BrickColor = BrickColor.new(1,1,1)
  1027. rayPart.Anchored = true
  1028. rayPart.CanCollide = false
  1029. rayPart.Size = Vector3.new(28,28,dis + 400)
  1030. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos -
  1031.  
  1032. head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  1033. rayPart.CFrame = rayCFrame
  1034. head:Destroy()
  1035. end)
  1036. wait()
  1037. local s = Instance.new("Sound",head)
  1038. s.Volume = 1
  1039. s.SoundId = "rbxassetid://332223043"
  1040. s.Pitch = .8
  1041. s:Play()
  1042. wait(.75)
  1043. setLerp(.17)
  1044. setJointCFrames({
  1045. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20,
  1046.  
  1047. 15, 0));
  1048. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new
  1049.  
  1050. (-11.676, 14.999, -0.001));
  1051. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-
  1052.  
  1053. 33.928, -4.374, -38.76));
  1054. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles
  1055.  
  1056. (Vector3.new(74.335, 25.091, -6.155));
  1057. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles
  1058.  
  1059. (Vector3.new(-45, 0, -0.001));
  1060. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new
  1061.  
  1062. (-15, -15, 0));
  1063. })
  1064. wait(.5)
  1065. Debounces.isAttacking = false
  1066. end
  1067. end)
  1068.  
  1069. reflect = function(d,n)
  1070. local i, n = -1 * d.unit, n.unit
  1071. local dot = n:Dot(i)
  1072. return 2*dot*n - i
  1073. end
  1074.  
  1075. makeReflectionBeam = function(pos,look,isCrit)
  1076. local ray = Ray.new(pos,look)
  1077. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1078. local e = Instance.new("Part",rayModel)
  1079. e.Anchored = true
  1080. e.CanCollide = false
  1081. e.BrickColor = BrickColor.new("White")
  1082. e.Material = "Neon"
  1083. e.FormFactor = "Custom"
  1084. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1085. if isCrit == true then
  1086. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1087. e.Name = "Punch"
  1088. end
  1089. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1090. local e = Instance.new("Sound",c)
  1091. if isCrit == true then
  1092. e.Volume = .5
  1093. else
  1094. e.Volume = .3
  1095. e.Pitch = 1.5
  1096. end
  1097. e.SoundId = "rbxassetid://200632875"
  1098. e:Play()
  1099. spawn(function()
  1100. wait(6)
  1101. e:Destroy()
  1102. end)
  1103. wait(.05)
  1104. if hit ~= nil then
  1105. newDir = reflect(look.unit,norm,isCrit)
  1106. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1107. end
  1108. end
  1109.  
  1110. uinps.InputBegan:connect(function(InputObject)
  1111. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and
  1112.  
  1113. Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false
  1114.  
  1115. then
  1116. local isLooping = true
  1117. uinps.InputEnded:connect(function(InputObject2)
  1118. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1119. isLooping = false
  1120. end
  1121. end)
  1122. while true do
  1123. if isLooping == false then
  1124. break
  1125. end
  1126. Debounces.attackNumber = Debounces.attackNumber + 1
  1127. local aimPos = mouse.Hit.p
  1128. local head = Instance.new("Part",c)
  1129. head.Size = Vector3.new(12,.2,12)
  1130. head.CanCollide = false
  1131. head.Anchored = true
  1132. head.Transparency = 1
  1133. for i = 1,2 do
  1134. local decal = Instance.new("Decal",head)
  1135. decal.Texture = "rbxassetid://323497117"
  1136. if i == 1 then
  1137. decal.Face = Enum.NormalId.Top
  1138. else
  1139. decal.Face = Enum.NormalId.Bottom
  1140. end
  1141. end
  1142. if Debounces.attackNumber%2 == 1 then
  1143. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace
  1144.  
  1145. (CFrame.new(8,8,.5)).p,aimPos)
  1146. else
  1147. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace
  1148.  
  1149. (CFrame.new(-8,8,.5)).p,aimPos)
  1150. end
  1151. spawn(function()
  1152. local timer = 0
  1153. while rs.RenderStepped:wait() do
  1154. if timer >= 1.55 then
  1155. break
  1156. end
  1157. head.CFrame = head.CFrame * CFrame.Angles
  1158.  
  1159. (0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1160. timer = timer + 1/30/(Debounces.FPS/60)
  1161. end
  1162. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1163. head:Destroy()
  1164. makeReflectionBeam(head.CFrame.p,(head.CFrame.p -
  1165.  
  1166. aimPos).unit * -999,false)
  1167. end)
  1168.  
  1169. wait()
  1170. local s = Instance.new("Sound",head)
  1171. s.Volume = 1
  1172. s.SoundId = "rbxassetid://332223043"
  1173. s.Pitch = 1.02
  1174. s:Play()
  1175. wait(.2)
  1176. end
  1177. end
  1178. end)
  1179.  
  1180. uinps.InputBegan:connect(function(InputObj)
  1181. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and
  1182.  
  1183. Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false
  1184.  
  1185. then
  1186. Debounces.isAttacking = true
  1187. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-
  1188.  
  1189. 999)).p
  1190. local head = Instance.new("Part",c)
  1191. head.Size = Vector3.new(18,.2,18)
  1192. head.CanCollide = false
  1193. head.Anchored = true
  1194. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace
  1195.  
  1196. (CFrame.new(0,0,-9)).p,aimPos)
  1197. head.Transparency = 1
  1198. for i = 1,2 do
  1199. local decal = Instance.new("Decal",head)
  1200. decal.Texture = "rbxassetid://323497117"
  1201. if i == 1 then
  1202. decal.Face = Enum.NormalId.Top
  1203. else
  1204. decal.Face = Enum.NormalId.Bottom
  1205. end
  1206. end
  1207. setLerp(.1)
  1208. setJointCFrames({
  1209. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0,
  1210.  
  1211. 0));
  1212. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new
  1213.  
  1214. (-11.676, -0.001, -0.001));
  1215. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-
  1216.  
  1217. 12.808, -28.88, -21.502));
  1218. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles
  1219.  
  1220. (Vector3.new(-146.606, 16.571, 13.928));
  1221. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles
  1222.  
  1223. (Vector3.new(-60, 0, -0.001));
  1224. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new
  1225.  
  1226. (-15.001, -15.001, 0));
  1227. })
  1228. spawn(function()
  1229. local timer = 0
  1230. while rs.RenderStepped:wait() do
  1231. if timer >= 1.55/.8 then
  1232. break
  1233. end
  1234. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad
  1235.  
  1236. (timer * 25/(Debounces.FPS/60)))
  1237. timer = timer + 1/30/(Debounces.FPS/60)
  1238. end
  1239. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1240. head:Destroy()
  1241. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit *
  1242.  
  1243. -999,true)
  1244. end)
  1245. wait()
  1246. local s = Instance.new("Sound",head)
  1247. s.Volume = 2
  1248. s.SoundId = "rbxassetid://332223043"
  1249. s.Pitch = .8
  1250. s:Play()
  1251. wait(.75)
  1252. setLerp(.17)
  1253. setJointCFrames({
  1254. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20,
  1255.  
  1256. 15, 0));
  1257. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new
  1258.  
  1259. (-11.676, 14.999, -0.001));
  1260. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-
  1261.  
  1262. 33.928, -4.374, -38.76));
  1263. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles
  1264.  
  1265. (Vector3.new(74.335, 25.091, -6.155));
  1266. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles
  1267.  
  1268. (Vector3.new(-45, 0, -0.001));
  1269. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new
  1270.  
  1271. (-15, -15, 0));
  1272. })
  1273. wait(.5)
  1274. Debounces.isAttacking = false
  1275. end
  1276. end)
  1277.  
  1278. uinps.InputBegan:connect(function(InputObj)
  1279. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1280. local finishEvent = nil
  1281. Debounces.isTyping = true
  1282. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1283. if InputObj.KeyCode == Enum.KeyCode.Return or
  1284.  
  1285. InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1286. Debounces.isTyping = false
  1287. finishEvent:disconnect()
  1288. end
  1289. end)
  1290. end
  1291. end)
  1292.  
  1293. uinps.InputBegan:connect(function(InputObj)
  1294. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1295. Debounces.isSprinting = true
  1296. end
  1297. end)
  1298.  
  1299. uinps.InputEnded:connect(function(InputObj)
  1300. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1301. Debounces.isSprinting = false
  1302. end
  1303. end)
  1304.  
  1305. rs.RenderStepped:connect(function()
  1306. Debounces.FPS = 1/rs.RenderStepped:wait()
  1307. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1308. if Debounces.isPassive == false then
  1309. fight:Pause()
  1310. sans:Resume()
  1311. efxBlock.Transparency = 1
  1312. else
  1313. fight:Resume()
  1314. sans:Pause()
  1315. efxBlock.Transparency = 0
  1316. end
  1317. for i,v in pairs (rayModel:children()) do
  1318. if v.Transparency >= 1 then
  1319. v:Destroy()
  1320. else
  1321. v.CanCollide = true
  1322. local parts = v:GetTouchingParts()
  1323. v.CanCollide = false
  1324. for i = 1,#parts do
  1325. if parts[i].Parent:FindFirstChild("Humanoid") and parts
  1326.  
  1327. [i].Parent ~= c and v.Name ~= "Punch" then
  1328. parts[i].Parent.Humanoid:TakeDamage(.5/
  1329.  
  1330. (Debounces.FPS/60))
  1331. elseif parts[i].Parent:FindFirstChild("Humanoid") and
  1332.  
  1333. parts[i].Parent ~= c and v.Name == "Punch" then
  1334. parts[i].Parent.Humanoid:TakeDamage(3.1/
  1335.  
  1336. (Debounces.FPS/60))
  1337. end
  1338. end
  1339. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/
  1340.  
  1341. (Debounces.FPS/60),0)
  1342. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1343. end
  1344. end
  1345. for i = 1,#Joints do
  1346. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1347. end
  1348. light.Brightness = math.random(1,4)
  1349. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement