Advertisement
GS1029

Erk undertale

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