Advertisement
Idirina

saness

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