Advertisement
exxwwas

dammit

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