Advertisement
TempusMoon

Untitled

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