Advertisement
Blueisim

GreenTale

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