Advertisement
Boss-1

Untitled

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