Advertisement
Derek227

Sans

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