Advertisement
xtremscriptsxd

sans

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