Advertisement
95audrey

Lightning Time

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