Advertisement
epicboi

Untitled

Apr 5th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.18 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303. -- BurnLegion strikes again!
  304. -- wongxd, this is why you DON'T goto Voidacity's
  305. -- SLPM has been absent, so I've taken it upon myself to make something
  306.  
  307. --------------------------------------------------------
  308.  
  309. pls = game:GetService'Players'
  310. rs = game:GetService'RunService'
  311. uinps = game:GetService'UserInputService'
  312. lp = pls.LocalPlayer
  313. mouse = lp:GetMouse()
  314. c = lp.Character
  315. human = c.Humanoid
  316. human.MaxHealth = 50
  317. wait()
  318. human.Health = 50
  319. c.Health:Destroy()
  320.  
  321. --------------------------------------------------------
  322.  
  323. Debounces = {
  324. AnimationCycles = 0;
  325. FPS = 0;
  326. scalingDamage = false;
  327. damageLevel = 0;
  328. attackNumber = 0;
  329. isAttacking = false;
  330. isMoving = false;
  331. isSprinting = false;
  332. isBoosting = false;
  333. isPassive = false;
  334. isTyping = false;
  335. }
  336.  
  337. --------------------------------------------------------
  338.  
  339. numLerp = function(start, goal, alpha)
  340. return(((goal - start) * alpha) + start)
  341. end
  342.  
  343. CFrameZero = function()
  344. return CFrame.new(Vector3.new())
  345. end
  346.  
  347. rad = function(value)
  348. return math.rad(value)
  349. end
  350.  
  351. CFAngles = function(Vector)
  352. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  353. end
  354.  
  355. --------------------------------------------------------
  356.  
  357. AnimStat = {
  358. lerpSpeed = .2;
  359. lerpSpeed2 = .35;
  360. lerpTween = 0;
  361. }
  362.  
  363. Joints = {
  364. c.HumanoidRootPart.RootJoint;
  365. c.Torso.Neck;
  366. c.Torso['Left Shoulder'];
  367. c.Torso['Right Shoulder'];
  368. c.Torso['Left Hip'];
  369. c.Torso['Right Hip'];
  370. }
  371.  
  372. JointTargets = {
  373. CFrameZero();
  374. CFrameZero();
  375. CFrameZero();
  376. CFrameZero();
  377. CFrameZero();
  378. CFrameZero();
  379. }
  380.  
  381. --------------------------------------------------------
  382.  
  383. BodyColors = {
  384. HeadColor = BrickColor.new("Institutional white");
  385. LeftArmColor = BrickColor.new("Institutional white");
  386. RightArmColor = BrickColor.new("Institutional white");
  387. LeftLegColor = BrickColor.new("Institutional white");
  388. RightLegColor = BrickColor.new("Institutional white");
  389. TorsoColor = BrickColor.new("Mid gray");
  390. }
  391.  
  392. Customs = {
  393. Face = "http://www.roblox.com/asset/?id=8560915";
  394. Shirt = "http://www.roblox.com/asset/?id=334781688";
  395. Pants = "http://www.roblox.com/asset/?id=335237283";
  396. }
  397.  
  398. --------------------------------------------------------
  399.  
  400. prepareCharacter = function()
  401. local transPoints = {
  402. NumberSequenceKeypoint.new(0,.819,.0375),
  403. NumberSequenceKeypoint.new(.207,.594,.0187),
  404. NumberSequenceKeypoint.new(.4,.55,.031),
  405. NumberSequenceKeypoint.new(.57,.619,.05),
  406. NumberSequenceKeypoint.new(.76,.8,.0375),
  407. NumberSequenceKeypoint.new(1,1,0),
  408. }
  409. local sizePoints = {
  410. NumberSequenceKeypoint.new(0,.687,0),
  411. NumberSequenceKeypoint.new(.111,.875,0),
  412. NumberSequenceKeypoint.new(.327,1.19,0),
  413. NumberSequenceKeypoint.new(.646,1.56,0),
  414. NumberSequenceKeypoint.new(.805,1.37,0),
  415. NumberSequenceKeypoint.new(.905,1.06,0),
  416. NumberSequenceKeypoint.new(.968,.938,0),
  417. NumberSequenceKeypoint.new(.984,1.13,0),
  418. NumberSequenceKeypoint.new(1,1.62,0),
  419. }
  420. local Size = NumberSequence.new(sizePoints)
  421. local Transparency = NumberSequence.new(transPoints)
  422. rayModel = Instance.new("Model",c)
  423. efxBlock = Instance.new("Part",c)
  424. efxBlock.BrickColor = BrickColor.new("Cyan")
  425. efxBlock.Material = "Neon"
  426. efxBlock.FormFactor = "Custom"
  427. efxBlock.Transparency = .3
  428. efxBlock.Size = Vector3.new(.3,.3,.3)
  429. local mesh = Instance.new("SpecialMesh",efxBlock)
  430. mesh.MeshType = Enum.MeshType.Sphere
  431. mesh.Scale = Vector3.new(1,1,1)
  432. light = Instance.new("PointLight",c.Head)
  433. light.Range = 10
  434. light.Color = Color3.new(0,200/255,1)
  435. light.Shadows = false
  436. local particles = Instance.new("ParticleEmitter",efxBlock)
  437. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  438. particles.LightEmission = .95
  439. particles.Size = Size
  440. particles.Name = "Fire"
  441. particles.Transparency = Transparency
  442. particles.LockedToPart = true
  443. particles.VelocityInheritance = .5
  444. particles.LockedToPart = true
  445. particles.Rate = 70
  446. particles.Texture = "rbxassetid://56561915"
  447. particles.Lifetime = NumberRange.new(2,2)
  448. particles.RotSpeed = NumberRange.new(100,100)
  449. particles.Speed = NumberRange.new(7,7)
  450. script.Parent = efxBlock
  451. fire = particles
  452. local offset = Vector3.new(-0.11, .23, -0.5)
  453. local weld = Instance.new("Weld",c.Head)
  454. weld.Part0 = c.Head
  455. weld.Part1 = efxBlock
  456. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  457. efxBlock.Parent = c
  458. local music = Instance.new("Sound",c)
  459. music.SoundId = "rbxassetid://316012176"
  460. music.Looped = true
  461. music.Volume = 0
  462. fight = music
  463. local music2 = Instance.new("Sound",c)
  464. music2.SoundId = "rbxassetid://316014309"
  465. music2.Looped = true
  466. music2.Volume = 0
  467. sans = music2
  468. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  469. pointGyro.P = 1e7
  470. pointGyro.D = 1e3
  471. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  472. animator = c.Humanoid:FindFirstChild("Animator")
  473. if animator then
  474. animator:Destroy()
  475. end
  476. c.Torso.roblox:Destroy()
  477. for i,v in pairs (c.Head:children()) do
  478. if v.ClassName == "Sound" then
  479. v:Destroy()
  480. end
  481. end
  482. for i = 1,#Joints do
  483. Joints[i].C1 = CFrame.new(Vector3.new())
  484. end
  485. human.WalkSpeed = 0
  486. human.JumpPower = 0
  487. end
  488.  
  489. uinps.InputBegan:connect(function(InputObject)
  490. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  491. Debounces.isPassive = not Debounces.isPassive
  492. end
  493. end)
  494.  
  495. setJointCFrames = function(table)
  496. for i = 1,#table do
  497. JointTargets[i] = table[i]
  498. end
  499. AnimationCycles = 0
  500. end
  501.  
  502. setLerp = function(speed)
  503. AnimStat.lerpSpeed = speed
  504. end
  505.  
  506. setTween = function(tween)
  507. AnimStat.lerpTween = tween
  508. end
  509.  
  510. takeDamage = function(position,damage,distance,platformStand)
  511. for i,v in pairs (pls:children()) do
  512. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  513. local torso = v.Character:FindFirstChild("Torso")
  514. if torso and (torso.Position - position).magnitude < distance then
  515. v.Character.Humanoid:TakeDamage(damage)
  516. if platformStand == true then
  517. v.Character.PlatformStand = platformStand
  518. end
  519. end
  520. end
  521. end
  522. end
  523.  
  524. --------------------------------------------------------
  525.  
  526. prepareCharacter()
  527.  
  528. --------------------------------------------------------
  529.  
  530. spawn(function()
  531. local sine = 0
  532. while wait() do
  533. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  534. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  535. setLerp(.1)
  536. if Debounces.isPassive == true then
  537. setJointCFrames({
  538. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  539. 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));
  540. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  541. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  542. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  543. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  544. })
  545. else
  546. setJointCFrames({
  547. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  548. 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));
  549. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  550. 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));
  551. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  552. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  553. })
  554. end
  555. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  556. sine = sine + math.rad(12)
  557. human.WalkSpeed = 15
  558. setLerp(.15)
  559. setJointCFrames({
  560. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  561. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  562. 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));
  563. 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));
  564. 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));
  565. 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));
  566. })
  567. end
  568. if Debounces.scalingDamage == true then
  569. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  570. end
  571. end
  572. end)
  573.  
  574. human.Changed:connect(function(prop)
  575. if prop == "MoveDirection" then
  576. if human.MoveDirection.magnitude > .02 then
  577. Debounces.isMoving = true
  578. else
  579. Debounces.isMoving = false
  580. end
  581. end
  582. end)
  583.  
  584. uinps.InputBegan:connect(function(InputObject)
  585. 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
  586. Debounces.isBoosting = true
  587. Debounces.damageLevel = 10
  588. Debounces.scalingDamage = true
  589. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  590. setLerp(.15)
  591. setJointCFrames({
  592. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  593. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  594. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  595. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  596. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  597. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  598. })
  599. local boostSpeed = 250
  600. local efx = Instance.new("Sound",c.Head)
  601. efx.SoundId = "rbxassetid://200632875"
  602. efx.Pitch = math.random(1100,1300)/1000
  603. efx.Volume = .5
  604. efx:Play()
  605. spawn(function()
  606. wait(5)
  607. efx:Destroy()
  608. end)
  609. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  610. vel.P = 1e3
  611. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  612. wait(.15)
  613. vel.P = 1000
  614. vel.MaxForce = Vector3.new(3000,0,3000)
  615. vel.Velocity = Vector3.new()
  616. wait(.3)
  617. setLerp(.3)
  618. setJointCFrames({
  619. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  620. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  621. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  622. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  623. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  624. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  625. })
  626. wait(.2)
  627. vel:Destroy()
  628. Debounces.damageLevel = 0
  629. Debounces.scalingDamage = false
  630. Debounces.isBoosting = false
  631. end
  632. end)
  633.  
  634. uinps.InputBegan:connect(function(InputObject)
  635. 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
  636. Debounces.isBoosting = true
  637. Debounces.damageLevel = 10
  638. Debounces.scalingDamage = true
  639. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  640. setLerp(.15)
  641. setJointCFrames({
  642. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  643. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  644. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  645. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  646. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  647. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  648. })
  649. local boostSpeed = 250
  650. local efx = Instance.new("Sound",c.Head)
  651. efx.SoundId = "rbxassetid://200632875"
  652. efx.Pitch = math.random(1100,1300)/1000
  653. efx.Volume = .5
  654. efx:Play()
  655. spawn(function()
  656. wait(5)
  657. efx:Destroy()
  658. end)
  659. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  660. vel.P = 1e3
  661. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  662. wait(.15)
  663. vel.P = 1000
  664. vel.MaxForce = Vector3.new(3000,0,3000)
  665. vel.Velocity = Vector3.new()
  666. wait(.3)
  667. setLerp(.3)
  668. setJointCFrames({
  669. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  670. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  671. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  672. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  673. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  674. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  675. })
  676. wait(.2)
  677. vel:Destroy()
  678. Debounces.damageLevel = 0
  679. Debounces.scalingDamage = false
  680. Debounces.isBoosting = false
  681. end
  682. end)
  683.  
  684. uinps.InputBegan:connect(function(InputObject)
  685. 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
  686. Debounces.isBoosting = true
  687. Debounces.damageLevel = 10
  688. Debounces.scalingDamage = true
  689. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  690. setLerp(.15)
  691. setJointCFrames({
  692. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  693. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  694. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  695. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  696. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  697. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  698. })
  699. local boostSpeed = 250
  700. local efx = Instance.new("Sound",c.Head)
  701. efx.SoundId = "rbxassetid://200632875"
  702. efx.Pitch = math.random(1100,1300)/1000
  703. efx.Volume = .5
  704. efx:Play()
  705. spawn(function()
  706. wait(5)
  707. efx:Destroy()
  708. end)
  709. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  710. vel.P = 1e3
  711. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  712. wait(.15)
  713. vel.P = 1000
  714. vel.MaxForce = Vector3.new(3000,0,3000)
  715. vel.Velocity = Vector3.new()
  716. wait(.3)
  717. setLerp(.3)
  718. setJointCFrames({
  719. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  720. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  721. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  722. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  723. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  724. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  725. })
  726. wait(.2)
  727. vel:Destroy()
  728. Debounces.damageLevel = 0
  729. Debounces.scalingDamage = false
  730. Debounces.isBoosting = false
  731. end
  732. end)
  733.  
  734. uinps.InputBegan:connect(function(InputObject)
  735. 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
  736. Debounces.isBoosting = true
  737. Debounces.damageLevel = 10
  738. Debounces.scalingDamage = true
  739. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  740. setLerp(.15)
  741. setJointCFrames({
  742. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  743. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  744. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  745. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  746. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  747. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  748. })
  749. local boostSpeed = 150
  750. local boostSpeed = 250
  751. local efx = Instance.new("Sound",c.Head)
  752. efx.SoundId = "rbxassetid://200632875"
  753. efx.Pitch = math.random(1100,1300)/1000
  754. efx.Volume = .5
  755. efx:Play()
  756. spawn(function()
  757. wait(5)
  758. efx:Destroy()
  759. end)
  760. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  761. vel.P = 1e3
  762. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  763. wait(.15)
  764. vel.P = 1000
  765. vel.MaxForce = Vector3.new(3000,0,3000)
  766. vel.Velocity = Vector3.new()
  767. wait(.3)
  768. setLerp(.3)
  769. setJointCFrames({
  770. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  771. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  772. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  773. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  774. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  775. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  776. })
  777. wait(.2)
  778. vel:Destroy()
  779. Debounces.damageLevel = 0
  780. Debounces.scalingDamage = false
  781. Debounces.isBoosting = false
  782. end
  783. end)
  784.  
  785. uinps.InputBegan:connect(function(InputObject)
  786. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  787. local isLooping = true
  788. uinps.InputEnded:connect(function(InputObject2)
  789. if InputObject2.KeyCode == Enum.KeyCode.Q then
  790. isLooping = false
  791. end
  792. end)
  793. while true do
  794. if isLooping == false then
  795. break
  796. end
  797. Debounces.attackNumber = Debounces.attackNumber + 1
  798. local aimPos = mouse.Hit.p
  799. local head = Instance.new("Part",c)
  800. head.Size = Vector3.new(12,.2,12)
  801. head.CanCollide = false
  802. head.Anchored = true
  803. head.Transparency = 1
  804. for i = 1,2 do
  805. local decal = Instance.new("Decal",head)
  806. decal.Texture = "rbxassetid://323497117"
  807. if i == 1 then
  808. decal.Face = Enum.NormalId.Top
  809. else
  810. decal.Face = Enum.NormalId.Bottom
  811. end
  812. end
  813. if Debounces.attackNumber%2 == 1 then
  814. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  815. else
  816. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  817. end
  818. spawn(function()
  819. local timer = 0
  820. while rs.RenderStepped:wait() do
  821. if timer >= 1.55 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. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  829. local hit, pos = workspace:FindPartOnRay(ray,c)
  830. local dis = (head.CFrame.p - pos).magnitude
  831. local rayPart = Instance.new("Part",rayModel)
  832. rayPart.Material = "Neon"
  833. rayPart.FormFactor = "Custom"
  834. rayPart.BrickColor = BrickColor.new(1,1,1)
  835. rayPart.Anchored = true
  836. rayPart.CanCollide = false
  837. rayPart.Size = Vector3.new(7,7,dis + 400)
  838. 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)
  839. rayPart.CFrame = rayCFrame
  840. head:Destroy()
  841. end)
  842. wait()
  843. local s = Instance.new("Sound",head)
  844. s.Volume = 1
  845. s.SoundId = "rbxassetid://332223043"
  846. s:Play()
  847. wait(.04)
  848. end
  849. end
  850. end)
  851.  
  852. uinps.InputBegan:connect(function(InputObj)
  853. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  854. Debounces.isAttacking = true
  855. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  856. local head = Instance.new("Part",c)
  857. head.Size = Vector3.new(18,.2,18)
  858. head.CanCollide = false
  859. head.Anchored = true
  860. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  861. head.Transparency = 1
  862. for i = 1,2 do
  863. local decal = Instance.new("Decal",head)
  864. decal.Texture = "rbxassetid://323497117"
  865. if i == 1 then
  866. decal.Face = Enum.NormalId.Top
  867. else
  868. decal.Face = Enum.NormalId.Bottom
  869. end
  870. end
  871. setLerp(.1)
  872. setJointCFrames({
  873. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  874. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  875. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  876. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  877. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  878. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  879. })
  880. spawn(function()
  881. local timer = 0
  882. while rs.RenderStepped:wait() do
  883. if timer >= 1.55/.8 then
  884. break
  885. end
  886. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  887. timer = timer + 1/30/(Debounces.FPS/60)
  888. end
  889. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  890. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  891. local hit, pos = workspace:FindPartOnRay(ray,c)
  892. local dis = (head.CFrame.p - pos).magnitude
  893. local rayPart = Instance.new("Part",rayModel)
  894. rayPart.Material = "Neon"
  895. rayPart.FormFactor = "Custom"
  896. rayPart.Name = "Punch"
  897. rayPart.BrickColor = BrickColor.new(1,1,1)
  898. rayPart.Anchored = true
  899. rayPart.CanCollide = false
  900. rayPart.Size = Vector3.new(28,28,dis + 400)
  901. 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)
  902. rayPart.CFrame = rayCFrame
  903. head:Destroy()
  904. end)
  905. wait()
  906. local s = Instance.new("Sound",head)
  907. s.Volume = 1
  908. s.SoundId = "rbxassetid://332223043"
  909. s.Pitch = .8
  910. s:Play()
  911. wait(.75)
  912. setLerp(.17)
  913. setJointCFrames({
  914. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  915. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  916. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  917. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  918. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  919. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  920. })
  921. wait(.5)
  922. Debounces.isAttacking = false
  923. end
  924. end)
  925.  
  926. reflect = function(d,n)
  927. local i, n = -1 * d.unit, n.unit
  928. local dot = n:Dot(i)
  929. return 2*dot*n - i
  930. end
  931.  
  932. makeReflectionBeam = function(pos,look,isCrit)
  933. local ray = Ray.new(pos,look)
  934. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  935. local e = Instance.new("Part",rayModel)
  936. e.Anchored = true
  937. e.CanCollide = false
  938. e.BrickColor = BrickColor.new("White")
  939. e.Material = "Neon"
  940. e.FormFactor = "Custom"
  941. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  942. if isCrit == true then
  943. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  944. e.Name = "Punch"
  945. end
  946. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  947. local e = Instance.new("Sound",c)
  948. if isCrit == true then
  949. e.Volume = .5
  950. else
  951. e.Volume = .3
  952. e.Pitch = 1.5
  953. end
  954. e.SoundId = "rbxassetid://200632875"
  955. e:Play()
  956. spawn(function()
  957. wait(6)
  958. e:Destroy()
  959. end)
  960. wait(.05)
  961. if hit ~= nil then
  962. newDir = reflect(look.unit,norm,isCrit)
  963. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  964. end
  965. end
  966.  
  967. uinps.InputBegan:connect(function(InputObject)
  968. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  969. local isLooping = true
  970. uinps.InputEnded:connect(function(InputObject2)
  971. if InputObject2.KeyCode == Enum.KeyCode.Q then
  972. isLooping = false
  973. end
  974. end)
  975. while true do
  976. if isLooping == false then
  977. break
  978. end
  979. Debounces.attackNumber = Debounces.attackNumber + 1
  980. local aimPos = mouse.Hit.p
  981. local head = Instance.new("Part",c)
  982. head.Size = Vector3.new(12,.2,12)
  983. head.CanCollide = false
  984. head.Anchored = true
  985. head.Transparency = 1
  986. for i = 1,2 do
  987. local decal = Instance.new("Decal",head)
  988. decal.Texture = "rbxassetid://323497117"
  989. if i == 1 then
  990. decal.Face = Enum.NormalId.Top
  991. else
  992. decal.Face = Enum.NormalId.Bottom
  993. end
  994. end
  995. if Debounces.attackNumber%2 == 1 then
  996. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  997. else
  998. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  999. end
  1000. spawn(function()
  1001. local timer = 0
  1002. while rs.RenderStepped:wait() do
  1003. if timer >= 1.55 then
  1004. break
  1005. end
  1006. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1007. timer = timer + 1/30/(Debounces.FPS/60)
  1008. end
  1009. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1010. head:Destroy()
  1011. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1012. end)
  1013.  
  1014. wait()
  1015. local s = Instance.new("Sound",head)
  1016. s.Volume = 1
  1017. s.SoundId = "rbxassetid://332223043"
  1018. s.Pitch = 1.02
  1019. s:Play()
  1020. wait(.2)
  1021. end
  1022. end
  1023. end)
  1024.  
  1025. uinps.InputBegan:connect(function(InputObj)
  1026. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  1027. Debounces.isAttacking = true
  1028. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1029. local head = Instance.new("Part",c)
  1030. head.Size = Vector3.new(18,.2,18)
  1031. head.CanCollide = false
  1032. head.Anchored = true
  1033. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1034. head.Transparency = 1
  1035. for i = 1,2 do
  1036. local decal = Instance.new("Decal",head)
  1037. decal.Texture = "rbxassetid://323497117"
  1038. if i == 1 then
  1039. decal.Face = Enum.NormalId.Top
  1040. else
  1041. decal.Face = Enum.NormalId.Bottom
  1042. end
  1043. end
  1044. setLerp(.1)
  1045. setJointCFrames({
  1046. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1047. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1048. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1049. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1050. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1051. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1052. })
  1053. spawn(function()
  1054. local timer = 0
  1055. while rs.RenderStepped:wait() do
  1056. if timer >= 1.55/.8 then
  1057. break
  1058. end
  1059. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1060. timer = timer + 1/30/(Debounces.FPS/60)
  1061. end
  1062. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1063. head:Destroy()
  1064. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1065. end)
  1066. wait()
  1067. local s = Instance.new("Sound",head)
  1068. s.Volume = 2
  1069. s.SoundId = "rbxassetid://332223043"
  1070. s.Pitch = .8
  1071. s:Play()
  1072. wait(.75)
  1073. setLerp(.17)
  1074. setJointCFrames({
  1075. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1076. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1077. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1078. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1079. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1080. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1081. })
  1082. wait(.5)
  1083. Debounces.isAttacking = false
  1084. end
  1085. end)
  1086.  
  1087. uinps.InputBegan:connect(function(InputObj)
  1088. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1089. local finishEvent = nil
  1090. Debounces.isTyping = true
  1091. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1092. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1093. Debounces.isTyping = false
  1094. finishEvent:disconnect()
  1095. end
  1096. end)
  1097. end
  1098. end)
  1099.  
  1100. uinps.InputBegan:connect(function(InputObj)
  1101. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1102. Debounces.isSprinting = true
  1103. end
  1104. end)
  1105.  
  1106. uinps.InputEnded:connect(function(InputObj)
  1107. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1108. Debounces.isSprinting = false
  1109. end
  1110. end)
  1111.  
  1112. rs.RenderStepped:connect(function()
  1113. Debounces.FPS = 1/rs.RenderStepped:wait()
  1114. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1115. if Debounces.isPassive == false then
  1116. fire.Enabled = false
  1117. light.Range = 0
  1118. fight:Pause()
  1119. sans:Resume()
  1120. efxBlock.Transparency = 1
  1121. else
  1122. fire.Enabled = true
  1123. light.Range = 10
  1124. fight:Resume()
  1125. sans:Pause()
  1126. efxBlock.Transparency = 0
  1127. end
  1128. for i,v in pairs (rayModel:children()) do
  1129. if v.Transparency >= 1 then
  1130. v:Destroy()
  1131. else
  1132. v.CanCollide = true
  1133. local parts = v:GetTouchingParts()
  1134. v.CanCollide = false
  1135. for i = 1,#parts do
  1136. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1137. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1138. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1139. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1140. end
  1141. end
  1142. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1143. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1144. end
  1145. end
  1146. for i = 1,#Joints do
  1147. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1148. end
  1149. local sineval = math.sin(tick() * 2) * 3
  1150. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1151. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1152. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement