RobloxScriptBuilder

maybe sans

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