13242

Untitled

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