Advertisement
Maximusf0ker

Untitled

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