Papyrus


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:47 a.m.

FORMAT: Lua

SIZE: 53.6 kB

HITS: 825

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

comments powered by Disqus