Advertisement
TempusMoon

Untitled

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