Advertisement
exxwwas

well thats it all

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