Advertisement
epicboi

Untitled

Apr 11th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.55 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. --[[
  304. req list
  305.  
  306. heart control (the force)
  307.  
  308. teleport
  309.  
  310. bone zone
  311.  
  312. throw bones
  313. --]]
  314.  
  315. local Level=666
  316. local function RiseLevel(hum,dmg)
  317. if tonumber(Level)then
  318. if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1
  319. local s=Instance.new("Sound")end--s. end
  320. else warn'String is not able to level up , or having issure to level.'end
  321. end
  322.  
  323. local Tired={n=0,m=10000,d=false}local DefAble=true
  324. local p = game:service'Players'.LocalPlayer
  325. local char = p.Character
  326. local mouse = p:GetMouse()
  327. local larm = char["Left Arm"]
  328. local rarm = char["Right Arm"]
  329. local lleg = char["Left Leg"]
  330. local rleg = char["Right Leg"]
  331. local hed = char.Head
  332. local Torso = char.Torso
  333. local hum = char.Humanoid
  334. local cam = workspace.CurrentCamera
  335. local root = char.HumanoidRootPart
  336. local deb = false
  337. local shot = 0
  338. local potential = false
  339. local debris=game:service"Debris"
  340. local l = game:GetService("Lighting")
  341. local rs = game:GetService("RunService").RenderStepped
  342. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  343. math.randomseed(os.time())
  344. for i,v in pairs(char:children()) do
  345. if v:IsA("Accessory") then
  346. v:Destroy()
  347. end
  348. end
  349. for i,v in pairs (hed:GetChildren()) do
  350. if v:IsA("Sound") then
  351. v:Destroy()
  352. end
  353. end
  354. music = Instance.new("Sound",c)
  355. music2 = Instance.new("Sound",c)
  356. local pl = game:service'Players'.LocalPlayer
  357. local chara = pl.Character
  358. local hum = chara:FindFirstChildOfClass("Humanoid")
  359. hum.MaxHealth = 10000000000000000000
  360. hum.Health = 10000000000000000000
  361. maincol = "White"
  362. increment = 20
  363. if 1 then
  364. local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  365. local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
  366. Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
  367. local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
  368. idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
  369. idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1)
  370. idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
  371. local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
  372. normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
  373. normal.TextXAlignment="Left"normal.TextYAlignment="Top"
  374. normal.Text=[[* Able to hold
  375. ! It changes function when sprint
  376. ----------------------------------
  377. K: Passive
  378. !*Q :Gaster Blaster (quick)
  379. ! E :Gaster Blaster (high damage)
  380. T :Teleport
  381. F :Bone Zone
  382. *G :Bone Throw
  383. *C :Heart Control
  384. Shift : Sprint
  385.  
  386. Hey arthurfoxy i am sebastian :P
  387. ]]
  388. spawn(function()
  389. while game:service'RunService'.RenderStepped:wait()do
  390. Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
  391. end end)
  392. end
  393. --------------------------------------------------------
  394. hed.face.Texture = "rbxassetid://871052201"
  395. chara:WaitForChild"Body Colors"
  396. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  397. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  398. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  399. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  400. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  401. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  402. ---------------------------------------
  403. ypcall(function()
  404. shirt = Instance.new("Shirt", char)
  405. shirt.Name = "Shirt"
  406. pants = Instance.new("Pants", char)
  407. pants.Name = "Pants"
  408. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=357134154"
  409. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=343128365"
  410. end)
  411. --------------------------------------------------------
  412. KG = Instance.new("Sound", game.Players.LocalPlayer.Character)
  413. KG.Volume = 3
  414. KG.SoundId = "rbxassetid://519341881"
  415. KG.Looped = true
  416. KG:Play()
  417.  
  418. --------------------------------------------------------
  419. CV="Eggplant"
  420. p = game.Players.LocalPlayer
  421. char = p.Character
  422. local txt = Instance.new("BillboardGui", char)
  423. txt.Adornee = char .Head
  424. txt.Name = "_status"
  425. txt.Size = UDim2.new(2, 0, 1.2, 0)
  426. txt.StudsOffset = Vector3.new(-9, 8, 0)
  427. local text = Instance.new("TextLabel", txt)
  428. text.Size = UDim2.new(10, 0, 7, 0)
  429. text.FontSize = "Size24"
  430. text.TextScaled = true
  431. text.TextTransparency = 0
  432. text.BackgroundTransparency = 1
  433. text.TextTransparency = 0
  434. text.TextStrokeTransparency = 0
  435. text.Font = "Arcade"
  436. text.TextStrokeColor3 = Color3.new(255,255,255)
  437.  
  438. v=Instance.new("Part")
  439. v.Name = "ColorBrick"
  440. v.Parent=p.Character
  441. v.FormFactor="Symmetric"
  442. v.Anchored=true
  443. v.CanCollide=false
  444. v.BottomSurface="Smooth"
  445. v.TopSurface="Smooth"
  446. v.Size=Vector3.new(10,5,3)
  447. v.Transparency=1
  448. v.CFrame=char.Torso.CFrame
  449. v.BrickColor=BrickColor.new(CV)
  450. v.Transparency=1
  451. text.TextColor3 = Color3.new(0,0,0)
  452. v.Shape="Block"
  453. wait()
  454. text.Text = "Do You Wanna Have A Mad Time?"
  455. wait(2)
  456. text.Text = "Any last words? Kiddo";
  457. wait(3)
  458. text.TextColor3 = Color3.new(0,0,0)
  459. spawn(function()while wait()do text.Text = "Dust Sans LV"..tostring(Level)end end)
  460. hed.face.Texture = "rbxassetid://871052201"
  461. --------------------------------------------------------
  462. pls = game:GetService'Players'
  463. rs = game:GetService'RunService'
  464. uinps = game:GetService'UserInputService'
  465. lp = pls.LocalPlayer
  466. mouse = lp:GetMouse()
  467. c = lp.Character
  468. human = c.Humanoid
  469. human.MaxHealth = 1/0
  470. wait()
  471. human.Health = 0/0
  472. c.Health:Destroy()
  473. --------------------------------------------------------
  474. Hulmet = Instance.new("Part")
  475. Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0)
  476. Hulmet.Parent = game.Players.LocalPlayer.Character
  477. Hulmet.Name = "Helmet"
  478. Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
  479. Hulmet.Material = Enum.Material.Metal
  480. Hulmet.BrickColor = BrickColor.new("Grey")
  481. MSHE = Instance.new("SpecialMesh")
  482. MSHE.Parent = Hulmet
  483. MSHE.MeshId = "rbxassetid://101203373"
  484. WULD = Instance.new("Weld")
  485. WULD.Parent = Hulmet
  486. WULD.Part0 = Hulmet
  487. WULD.Part1 = game.Players.LocalPlayer.Character.Head
  488. WULD.C1 = CFrame.Angles(0,0,0)
  489. WULD.C0 = CFrame.new(0,0,0)
  490. --------------------------------------------------------
  491.  
  492. Debounces = {
  493. AnimationCycles = 0;
  494. FPS = 0;
  495. scalingDamage = false;
  496. damageLevel = 0;
  497. attackNumber = 0;
  498. isAttacking = false;
  499. isMoving = false;
  500. isSprinting = false;
  501. isBoosting = false;
  502. isPassive = false;
  503. isTyping = false;
  504. }
  505.  
  506. --------------------------------------------------------
  507.  
  508. numLerp = function(start, goal, alpha)
  509. return(((goal - start) * alpha) + start)
  510. end
  511.  
  512. CFrameZero = function()
  513. return CFrame.new(Vector3.new())
  514. end
  515.  
  516. rad = function(value)
  517. return math.rad(value)
  518. end
  519.  
  520. CFAngles = function(Vector)
  521. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  522. end
  523.  
  524. --------------------------------------------------------
  525.  
  526. AnimStat = {
  527. lerpSpeed = .2;
  528. lerpSpeed2 = .35;
  529. lerpTween = 0;
  530. }
  531.  
  532. Joints = {
  533. c.HumanoidRootPart.RootJoint;
  534. c.Torso.Neck;
  535. c.Torso['Left Shoulder'];
  536. c.Torso['Right Shoulder'];
  537. c.Torso['Left Hip'];
  538. c.Torso['Right Hip'];
  539. }
  540.  
  541. JointTargets = {
  542. CFrameZero();
  543. CFrameZero();
  544. CFrameZero();
  545. CFrameZero();
  546. CFrameZero();
  547. CFrameZero();
  548. }
  549.  
  550. --------------------------------------------------------
  551.  
  552. BodyColors = {
  553. HeadColor = BrickColor.new("Institutional white");
  554. LeftArmColor = BrickColor.new("Institutional white");
  555. RightArmColor = BrickColor.new("Institutional white");
  556. LeftLegColor = BrickColor.new("Institutional white");
  557. RightLegColor = BrickColor.new("Institutional white");
  558. TorsoColor = BrickColor.new("Mid gray");
  559. }
  560.  
  561. Customs = {
  562. Face = "http://www.roblox.com/asset/?id=871052201";
  563. Shirt = "http://www.roblox.com/asset/?id=357134155";
  564. Pants = "http://www.roblox.com/asset/?id=343128366";
  565. }
  566.  
  567. --------------------------------------------------------
  568.  
  569. prepareCharacter = function()
  570. local transPoints = {
  571. NumberSequenceKeypoint.new(0,.819,.0375),
  572. NumberSequenceKeypoint.new(.207,.594,.0187),
  573. NumberSequenceKeypoint.new(.4,.55,.031),
  574. NumberSequenceKeypoint.new(.57,.619,.05),
  575. NumberSequenceKeypoint.new(.76,.8,.0375),
  576. NumberSequenceKeypoint.new(1,1,0),
  577. }
  578. local sizePoints = {
  579. NumberSequenceKeypoint.new(0,.687,0),
  580. NumberSequenceKeypoint.new(.111,.875,0),
  581. NumberSequenceKeypoint.new(.327,1.19,0),
  582. NumberSequenceKeypoint.new(.646,1.56,0),
  583. NumberSequenceKeypoint.new(.805,1.37,0),
  584. NumberSequenceKeypoint.new(.905,1.06,0),
  585. NumberSequenceKeypoint.new(.968,.938,0),
  586. NumberSequenceKeypoint.new(.984,1.13,0),
  587. NumberSequenceKeypoint.new(1,1.62,0),
  588. }
  589. local Size = NumberSequence.new(sizePoints)
  590. local Transparency = NumberSequence.new(transPoints)
  591. rayModel = Instance.new("Model",c)
  592. efcModel = Instance.new("Model",c)
  593. efxBlock = Instance.new("Part",c)
  594. efxBlock.BrickColor = BrickColor.new("Bright violet")
  595. efxBlock.Material = "Neon"
  596. efxBlock.FormFactor = "Custom"
  597. efxBlock.Transparency = .3
  598. efxBlock.Size = Vector3.new(.3,.3,.3)
  599. local mesh = Instance.new("SpecialMesh",efxBlock)
  600. mesh.MeshType = Enum.MeshType.Sphere
  601. mesh.Scale = Vector3.new(1,1,1)
  602. light = Instance.new("PointLight",c.Head)
  603. light.Range = 10
  604. light.Color = Color3.new(0,200/255,1)
  605. light.Shadows = false
  606. local particles = Instance.new("ParticleEmitter",efxBlock)
  607. particles.Color = ColorSequence.new(Color3.fromRGB(48,17,109))
  608. particles.LightEmission = .5
  609. particles.Size = Size
  610. particles.Name = "Fire"
  611. particles.Transparency = Transparency
  612. particles.LockedToPart = true
  613. particles.VelocityInheritance = .5
  614. particles.LockedToPart = true
  615. particles.Rate = 70
  616. particles.Texture = "rbxassetid://170478388"
  617. particles.Lifetime = NumberRange.new(2,2)
  618. particles.RotSpeed = NumberRange.new(100,100)
  619. particles.Speed = NumberRange.new(7,7)
  620. script.Parent = efxBlock
  621. fire = particles
  622. local offset = Vector3.new(-0.11, .23, -0.5)
  623. local weld = Instance.new("Weld",c.Head)
  624. weld.Part0 = c.Head
  625. weld.Part1 = efxBlock
  626. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  627. efxBlock.Parent = c
  628. music.SoundId = "rbxassetid://316012176"
  629. music.Looped = true
  630. music.Volume = 0
  631. fight = music
  632. music2.SoundId = "rbxassetid://316014309"
  633. music2.Looped = true
  634. music2.Volume = 0
  635. sans = music2
  636. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  637. pointGyro.P = 1e7
  638. pointGyro.D = 1e3
  639. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  640. animator = c.Humanoid:FindFirstChild("Animator")
  641. if animator then
  642. animator:Destroy()
  643. end
  644. c.Torso.roblox:Destroy()
  645. for i,v in pairs (c.Head:children()) do
  646. if v.ClassName == "Sound" then
  647. v:Destroy()
  648. end
  649. end
  650. for i = 1,#Joints do
  651. Joints[i].C1 = CFrame.new(Vector3.new())
  652. end
  653. human.WalkSpeed = 0
  654. human.JumpPower = 0
  655. end
  656.  
  657. uinps.InputBegan:connect(function(InputObject)
  658. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  659. Debounces.isPassive = not Debounces.isPassive
  660. end
  661. end)
  662.  
  663. setJointCFrames = function(table)
  664. for i = 1,#table do
  665. JointTargets[i] = table[i]
  666. end
  667. AnimationCycles = 0
  668. end
  669.  
  670. setLerp = function(speed)
  671. AnimStat.lerpSpeed = speed
  672. end
  673.  
  674. setTween = function(tween)
  675. AnimStat.lerpTween = tween
  676. end
  677.  
  678. takeDamage = function(position,damage,distance,platformStand)
  679. for i,v in pairs (pls:children()) do
  680. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  681. local torso = v.Character:FindFirstChild("Torso")
  682. if torso and (torso.Position - position).magnitude < distance then
  683. RiseLevel(v.Character.Humanoid,damage)
  684. v.Character.Humanoid:TakeDamage(damage)
  685. if platformStand == true then
  686. v.Character.PlatformStand = platformStand
  687. end
  688. end
  689. end
  690. end
  691. end
  692.  
  693. --------------------------------------------------------
  694.  
  695. prepareCharacter()
  696.  
  697. --------------------------------------------------------
  698. hldng={}Player=p
  699. function chatfunc(text)
  700. spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end
  701. local rs=game:service'RunService'.RenderStepped
  702. local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  703. local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
  704. local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954"
  705. if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  706. local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht"
  707. local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  708. local texts={}
  709. for i=1,snum do
  710. texts[i]=Instance.new("TextButton",b)
  711. texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  712. texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)
  713. texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1)
  714. texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1
  715. end
  716. local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then
  717. if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end
  718. else texts[i][Set]=Val end end end end
  719. for i=1,#texts do
  720. if texts[i].Parent then
  721. texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0
  722. end
  723. if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end
  724. sw(3)
  725. end
  726. sw(180)
  727. for i=1,0,-.025 do
  728. DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i)
  729. sw()
  730. end
  731. b:Destroy()
  732. end)
  733. end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end)
  734. mouse.KeyUp:connect(function(k)
  735. hldng[k]=nil
  736. end)
  737.  
  738. local function doit()
  739. if DefAble then
  740. return
  741. else
  742. if human.Health~=human.MaxHealth then
  743. DefAble=false
  744. human:Destroy()
  745. human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status"
  746. human.MaxHealth=1 human.Health=1
  747. human.HealthChanged:connect(doit)
  748. root.CFrame=root.CFrame*CFrame.new(0,0,10)
  749. hldng.r=nil warn"Dodged"
  750. Tired.n=Tired.n+10
  751. end
  752. end
  753. end
  754. dodge=human.HealthChanged:connect(doit)
  755. local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end
  756. spawn(function()
  757. local sine = 0
  758. local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui')
  759. local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0
  760. frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0)
  761. frm.Position=UDim2.new(.3,0,.7,0)
  762.  
  763. local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0
  764. t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1
  765. t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1)
  766. while wait()do
  767. t.Size=UDim2.new(Tired.n/Tired.m,0,1,0)
  768. if Tired.n>=Tired.m then
  769. Tired.n=Tired.m
  770. Tired.d=true
  771. end
  772. if Tired.d then
  773. Tired.n=Tired.n-5 DefAble=true hldng.r=nil
  774. end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m)
  775. if Tired.n<=0 then Tired.n=0 Tired.d=false end
  776. if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else
  777. dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit)
  778.  
  779. end
  780.  
  781. if hldng.r then DefAble=false else DefAble=1 end
  782.  
  783. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  784. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  785. setLerp(.1)
  786. if Debounces.isPassive == true then --walk
  787. setJointCFrames({
  788. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  789. 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));
  790. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  791. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  792. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  793. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  794. })
  795. else
  796. setJointCFrames({
  797. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  798. 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));
  799. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  800. 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));
  801. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  802. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  803. })
  804. end
  805. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  806. sine = sine + math.rad(12) --else jump
  807. human.WalkSpeed = 15
  808. setLerp(.15)
  809. setJointCFrames({
  810. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  811. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  812. 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));
  813. 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));
  814. 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));
  815. 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));
  816. })
  817. end
  818. if Debounces.scalingDamage == true then
  819. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  820. end
  821. end
  822. end)
  823. human.Changed:connect(function(prop)
  824. if prop == "MoveDirection" then
  825. if human.MoveDirection.magnitude > .02 then
  826. Debounces.isMoving = true
  827. else
  828. Debounces.isMoving = false
  829. end
  830. end
  831. end)
  832. local dunkedon=false
  833. mouse.KeyDown:connect(function(k)
  834. hldng[k]=true
  835. if not Debounces.isAttacking then
  836. if k=="c"and not Tired.d and Debounces.isPassive then
  837. local GrabObj=mouse.Target
  838. local hum=nil
  839. if GrabObj then
  840. if not GrabObj.Anchored then
  841. if GrabObj.Parent then
  842. if GrabObj.Parent:FindFirstChild'Humanoid'then
  843. hum=GrabObj.Parent.Humanoid
  844. end
  845. end
  846. local jet=Instance.new("BodyPosition",GrabObj)
  847. if not hum then jet.D=2000 jet.P=2000 end
  848. while hldng.c and not Tired.d do
  849. jet.MaxForce=Vector3.new(10,10,10)*10000000
  850. jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position
  851. Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2)
  852. local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z
  853. if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end
  854. sw()
  855. end
  856. jet:Destroy()
  857. else
  858. warn'The object is anchored!'
  859. end
  860. end
  861. end
  862. if k=="t"and not Tired.d then -- TELEPORT
  863. if mouse.Target then Debounces.isAttacking=true
  864. local pos=mouse.Hit KG:Pause()
  865. root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999)
  866. local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  867. jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new()
  868. j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0)
  869. wait(1)Debounces.isAttacking=false KG:Resume()
  870. root.CFrame=pos+Vector3.new(0,3,0)
  871. jam:Destroy()root.Anchored=false
  872. end
  873. Tired.n=Tired.n+50
  874. end
  875. if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then
  876. dunkedon=true local pos=mouse.Hit.p
  877. Tired.n=Tired.n+100
  878. local idk=Instance.new("Part",efcModel)
  879. idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil
  880. sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder"
  881. idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90))
  882. idk.Material="SmoothPlastic"
  883. idk.Transparency=.5 sw(20)idk:Destroy()
  884. spawn(function()for i=1,300 do
  885. local pos=CFrame.new(pos)*CFrame.Angles(0,math.rad(math.random(360)),0)*CFrame.new(0,0,math.random(380)/10)*CFrame.Angles(0,math.rad(math.random(180)),0)+Vector3.new(0,-6,0)
  886. spawn(function()
  887. local p=Instance.new("Part",efcModel)
  888. p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
  889. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos
  890. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  891. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  892. m.Scale=Vector3.new(.05,.08,.05)/1.2
  893. spawn(function()
  894. for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end
  895. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  896. end)
  897. end)
  898. sw()
  899. end
  900. end)
  901. wait(5)
  902.  
  903. dunkedon=false
  904. end
  905. end
  906. if Debounces.isPassive and k=="g"then
  907. while hldng.g and not Tired.d do
  908. sw(10)
  909. Tired.n=Tired.n+1
  910. local pos=CFrame.new((root.CFrame+Vector3.new(0,4,0))*CFrame.new(math.random(-70,70)/10,math.random(-10,10)/10,math.random(-70,70)/10).p,mouse.Hit.p)
  911. spawn(function()
  912. local p=Instance.new("Part",efcModel)
  913. p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end)
  914. p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos
  915. local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil
  916. local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937"
  917. m.Scale=Vector3.new(.05,.08,.05)/2.5
  918. spawn(function()
  919. for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end
  920. sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy()
  921. end)
  922. end)
  923. end
  924. end
  925.  
  926. end)
  927. uinps.InputBegan:connect(function(InputObject)
  928. 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
  929. Debounces.isBoosting = true
  930. Debounces.damageLevel = 10
  931. Debounces.scalingDamage = true
  932. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  933. setLerp(.15)
  934. setJointCFrames({
  935. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  936. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  937. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  938. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  939. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  940. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  941. })
  942. local boostSpeed = 250
  943. local efx = Instance.new("Sound",c.Head)
  944. efx.SoundId = "rbxassetid://200632875"
  945. efx.Pitch = math.random(1100,1300)/1000
  946. efx.Volume = .5
  947. efx:Play()
  948. spawn(function()
  949. wait(5)
  950. efx:Destroy()
  951. end)
  952. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  953. vel.P = 1e3
  954. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  955. wait(.15)
  956. vel.P = 1000
  957. vel.MaxForce = Vector3.new(3000,0,3000)
  958. vel.Velocity = Vector3.new()
  959. wait(.3)
  960. setLerp(.3)
  961. setJointCFrames({
  962. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  963. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  964. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  965. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  966. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  967. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  968. })
  969. wait(.2)
  970. vel:Destroy()
  971. Debounces.damageLevel = 0
  972. Debounces.scalingDamage = false
  973. Debounces.isBoosting = false
  974. end
  975. end)
  976.  
  977. uinps.InputBegan:connect(function(InputObject)
  978. 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
  979. Debounces.isBoosting = true
  980. Debounces.damageLevel = 10
  981. Debounces.scalingDamage = true
  982. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  983. setLerp(.15)
  984. setJointCFrames({
  985. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  986. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  987. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  988. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  989. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  990. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  991. })
  992. local boostSpeed = 250
  993. local efx = Instance.new("Sound",c.Head)
  994. efx.SoundId = "rbxassetid://200632875"
  995. efx.Pitch = math.random(1100,1300)/1000
  996. efx.Volume = .5
  997. efx:Play()
  998. spawn(function()
  999. wait(5)
  1000. efx:Destroy()
  1001. end)
  1002. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  1003. vel.P = 1e3
  1004. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1005. wait(.15)
  1006. vel.P = 1000
  1007. vel.MaxForce = Vector3.new(3000,0,3000)
  1008. vel.Velocity = Vector3.new()
  1009. wait(.3)
  1010. setLerp(.3)
  1011. setJointCFrames({
  1012. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  1013. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  1014. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  1015. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  1016. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  1017. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  1018. })
  1019. wait(.2)
  1020. vel:Destroy()
  1021. Debounces.damageLevel = 0
  1022. Debounces.scalingDamage = false
  1023. Debounces.isBoosting = false
  1024. end
  1025. end)
  1026.  
  1027. uinps.InputBegan:connect(function(InputObject)
  1028. 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
  1029. Debounces.isBoosting = true
  1030. Debounces.damageLevel = 10
  1031. Debounces.scalingDamage = true
  1032. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1033. setLerp(.15)
  1034. setJointCFrames({
  1035. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  1036. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  1037. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  1038. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  1039. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  1040. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  1041. })
  1042. local boostSpeed = 250
  1043. local efx = Instance.new("Sound",c.Head)
  1044. efx.SoundId = "rbxassetid://200632875"
  1045. efx.Pitch = math.random(1100,1300)/1000
  1046. efx.Volume = .5
  1047. efx:Play()
  1048. spawn(function()
  1049. wait(5)
  1050. efx:Destroy()
  1051. end)
  1052. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  1053. vel.P = 1e3
  1054. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1055. wait(.15)
  1056. vel.P = 1000
  1057. vel.MaxForce = Vector3.new(3000,0,3000)
  1058. vel.Velocity = Vector3.new()
  1059. wait(.3)
  1060. setLerp(.3)
  1061. setJointCFrames({
  1062. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  1063. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  1064. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  1065. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  1066. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  1067. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  1068. })
  1069. wait(.2)
  1070. vel:Destroy()
  1071. Debounces.damageLevel = 0
  1072. Debounces.scalingDamage = false
  1073. Debounces.isBoosting = false
  1074. end
  1075. end)
  1076.  
  1077. uinps.InputBegan:connect(function(InputObject)
  1078. 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
  1079. Debounces.isBoosting = true
  1080. Debounces.damageLevel = 10
  1081. Debounces.scalingDamage = true
  1082. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  1083. setLerp(.15)
  1084. setJointCFrames({
  1085. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  1086. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  1087. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  1088. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  1089. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  1090. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  1091. })
  1092. local boostSpeed = 150
  1093. local boostSpeed = 250
  1094. local efx = Instance.new("Sound",c.Head)
  1095. efx.SoundId = "rbxassetid://200632875"
  1096. efx.Pitch = math.random(1100,1300)/1000
  1097. efx.Volume = .5
  1098. efx:Play()
  1099. spawn(function()
  1100. wait(5)
  1101. efx:Destroy()
  1102. end)
  1103. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  1104. vel.P = 1e3
  1105. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  1106. wait(.15)
  1107. vel.P = 1000
  1108. vel.MaxForce = Vector3.new(3000,0,3000)
  1109. vel.Velocity = Vector3.new()
  1110. wait(.3)
  1111. setLerp(.3)
  1112. setJointCFrames({
  1113. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  1114. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  1115. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  1116. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  1117. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  1118. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  1119. })
  1120. wait(.2)
  1121. vel:Destroy()
  1122. Debounces.damageLevel = 0
  1123. Debounces.scalingDamage = false
  1124. Debounces.isBoosting = false
  1125. end
  1126. end)
  1127.  
  1128. uinps.InputBegan:connect(function(InputObject)
  1129. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false and not Tired.d then
  1130. local isLooping = true
  1131. uinps.InputEnded:connect(function(InputObject2)
  1132. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1133. isLooping = false
  1134. end
  1135. end)
  1136. while not Tired.d do
  1137. if isLooping == false then
  1138. break
  1139. end
  1140. Debounces.attackNumber = Debounces.attackNumber + 1
  1141. local aimPos = mouse.Hit.p
  1142. local head = Instance.new("Part",c)
  1143. head.Size = Vector3.new(12,.2,12)
  1144. head.CanCollide = false
  1145. head.Anchored = true
  1146. head.Transparency = 1
  1147. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1148. mesh.Scale=Vector3.new(.05,.05,.05)
  1149. local decal = Instance.new("Decal",head)
  1150. decal.Texture = "rbxassetid://441975828"
  1151. if Debounces.attackNumber%2 == 1 then
  1152. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1153. else
  1154. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1155. end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1156. spawn(function()
  1157. local timer = 0
  1158. while rs.RenderStepped:wait() do
  1159. if timer >= 1.55 then
  1160. break
  1161. end
  1162. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1163. timer = timer + 1/30/(Debounces.FPS/60)
  1164. end
  1165. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1166. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1167. local hit, pos = workspace:FindPartOnRay(ray,c)
  1168. local dis = (head.CFrame.p - pos).magnitude
  1169. local rayPart = Instance.new("Part",rayModel)
  1170. rayPart.Material = "Neon"
  1171. rayPart.FormFactor = "Custom"
  1172. rayPart.BrickColor = BrickColor.new"Royal purple"
  1173. rayPart.Anchored = true
  1174. rayPart.CanCollide = false
  1175. rayPart.Size = Vector3.new(7,7,dis + 400)
  1176. 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)
  1177. rayPart.CFrame = rayCFrame
  1178. head:Destroy()
  1179. end)
  1180. wait()
  1181. local s = Instance.new("Sound",head)
  1182. s.Volume = 1
  1183. s.SoundId = "rbxassetid://332223043"
  1184. s:Play()
  1185. wait(.04)
  1186. Tired.n=Tired.n+2
  1187. end
  1188. end
  1189. end)
  1190.  
  1191. uinps.InputBegan:connect(function(InputObj)
  1192. if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and not Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  1193. Debounces.isAttacking = true
  1194. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1195. local head = Instance.new("Part",c)
  1196. head.Size = Vector3.new(18,.2,18)
  1197. head.CanCollide = false
  1198. head.Anchored = true
  1199. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1200. head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1201. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1202. mesh.Scale=Vector3.new(.1,.1,.1)
  1203. local decal = Instance.new("Decal",head)
  1204. decal.Texture = "rbxassetid://441975828"
  1205. setLerp(.1)
  1206. setJointCFrames({
  1207. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1208. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1209. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1210. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1211. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1212. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1213. })
  1214. spawn(function()
  1215. local timer = 0
  1216. while rs.RenderStepped:wait() do
  1217. if timer >= 1.55/.8 then
  1218. break
  1219. end
  1220. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1221. timer = timer + 1/30/(Debounces.FPS/60)
  1222. end
  1223. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1224. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  1225. local hit, pos = workspace:FindPartOnRay(ray,c)
  1226. local dis = (head.CFrame.p - pos).magnitude
  1227. local rayPart = Instance.new("Part",rayModel)
  1228. rayPart.Material = "Neon"
  1229. rayPart.FormFactor = "Custom"
  1230. rayPart.Name = "Punch"
  1231. rayPart.BrickColor = BrickColor.new"Royal purple"
  1232. rayPart.Anchored = true
  1233. rayPart.CanCollide = false
  1234. rayPart.Size = Vector3.new(28,28,dis + 400)
  1235. 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)
  1236. rayPart.CFrame = rayCFrame
  1237. head:Destroy()
  1238. end)
  1239. wait()
  1240. local s = Instance.new("Sound",head)
  1241. s.Volume = 1
  1242. s.SoundId = "rbxassetid://332223043"
  1243. s.Pitch = .8
  1244. s:Play()
  1245. wait(.75)
  1246. setLerp(.17)
  1247. setJointCFrames({
  1248. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1249. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1250. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1251. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1252. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1253. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1254. })
  1255. Tired.n=Tired.n+15
  1256. wait(.5)
  1257. Debounces.isAttacking = false
  1258. end
  1259. end)
  1260.  
  1261. reflect = function(d,n)
  1262. local i, n = -1 * d.unit, n.unit
  1263. local dot = n:Dot(i)
  1264. return 2*dot*n - i
  1265. end
  1266.  
  1267. makeReflectionBeam = function(pos,look,isCrit)
  1268. local ray = Ray.new(pos,look)
  1269. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1270. local e = Instance.new("Part",rayModel)
  1271. e.Anchored = true
  1272. e.CanCollide = false
  1273. e.BrickColor = BrickColor.new("Bright violet")
  1274. e.Material = "Neon"
  1275. e.FormFactor = "Custom"
  1276. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1277. if isCrit == true then
  1278. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1279. e.Name = "Punch"
  1280. end
  1281. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1282. local e = Instance.new("Sound",c)
  1283. if isCrit == true then
  1284. e.Volume = .5
  1285. else
  1286. e.Volume = .3
  1287. e.Pitch = 1.5
  1288. end
  1289. e.SoundId = "rbxassetid://200632875"
  1290. e:Play()
  1291. spawn(function()
  1292. wait(6)
  1293. e:Destroy()
  1294. end)
  1295. wait(.05)
  1296. if hit ~= nil then
  1297. newDir = reflect(look.unit,norm,isCrit)
  1298. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1299. end
  1300. end
  1301.  
  1302. uinps.InputBegan:connect(function(InputObject)
  1303. if InputObject.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  1304. local isLooping = true
  1305. uinps.InputEnded:connect(function(InputObject2)
  1306. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1307. isLooping = false
  1308. end
  1309. end)
  1310. while not Tired.d do
  1311. if isLooping == false then
  1312. break
  1313. end
  1314. Debounces.attackNumber = Debounces.attackNumber + 1
  1315. local aimPos = mouse.Hit.p
  1316. local head = Instance.new("Part",c)
  1317. head.Size = Vector3.new(12,.2,12)
  1318. head.CanCollide = false
  1319. head.Anchored = true
  1320. head.Transparency=1
  1321. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1322. mesh.Scale=Vector3.new(.05,.05,.05)
  1323. local decal = Instance.new("Decal",head)
  1324. decal.Texture = "rbxassetid://441975828"
  1325.  
  1326. if Debounces.attackNumber%2 == 1 then
  1327. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1328. else
  1329. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1330. end
  1331. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1332. spawn(function()
  1333. local timer = 0
  1334. while rs.RenderStepped:wait() do
  1335. if timer >= 1.55 then
  1336. break
  1337. end
  1338. head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10)
  1339. timer = timer + 1/30/(Debounces.FPS/60)
  1340. end
  1341. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1342. head:Destroy()
  1343. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1344. end)
  1345.  
  1346. wait()
  1347. local s = Instance.new("Sound",head)
  1348. s.Volume = 1
  1349. s.SoundId = "rbxassetid://332223043"
  1350. s.Pitch = 1.02
  1351. s:Play()
  1352. Tired.n=Tired.n+15
  1353. wait(.2)
  1354. end
  1355. end
  1356. end)
  1357.  
  1358. uinps.InputBegan:connect(function(InputObj)
  1359. if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then
  1360. Debounces.isAttacking = true
  1361. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1362. local head = Instance.new("Part",c)
  1363. head.Size = Vector3.new(18,.2,18)
  1364. head.CanCollide = false
  1365. head.Anchored = true
  1366. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1367. head.Transparency = 1
  1368. local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407"
  1369. mesh.Scale=Vector3.new(.1,.1,.1)
  1370. local decal = Instance.new("Decal",head)
  1371. decal.Texture = "rbxassetid://441975828"
  1372. head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0)
  1373. setLerp(.1)
  1374. setJointCFrames({
  1375. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1376. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1377. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1378. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1379. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1380. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1381. })
  1382. spawn(function()
  1383. local timer = 0
  1384. while rs.RenderStepped:wait() do
  1385. if timer >= 1.55/.8 then
  1386. break
  1387. end
  1388. head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10)
  1389. timer = timer + 1/30/(Debounces.FPS/60)
  1390. end
  1391. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1392. head:Destroy()
  1393. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1394. end)
  1395. wait()
  1396. local s = Instance.new("Sound",head)
  1397. s.Volume = 2
  1398. s.SoundId = "rbxassetid://332223043"
  1399. s.Pitch = .8
  1400. s:Play()
  1401. wait(.75)
  1402. setLerp(.17)
  1403. setJointCFrames({
  1404. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1405. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1406. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1407. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1408. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1409. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1410. })
  1411. Tired.n=Tired.n+30
  1412. wait(.5)
  1413. Debounces.isAttacking = false
  1414. end
  1415. end)
  1416.  
  1417. uinps.InputBegan:connect(function(InputObj)
  1418. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1419. local finishEvent = nil
  1420. Debounces.isTyping = true
  1421. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1422. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1423. Debounces.isTyping = false
  1424. finishEvent:disconnect()
  1425. end
  1426. end)
  1427. end
  1428. end)
  1429.  
  1430. uinps.InputBegan:connect(function(InputObj)
  1431. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1432. Debounces.isSprinting = true
  1433. end
  1434. end)
  1435.  
  1436. uinps.InputEnded:connect(function(InputObj)
  1437. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  1438. Debounces.isSprinting = false
  1439. end
  1440. end)
  1441. uinps.InputBegan:connect(function(InputObj)
  1442.  
  1443. end)
  1444.  
  1445. rs.RenderStepped:connect(function()
  1446. Debounces.FPS = 1/rs.RenderStepped:wait()
  1447. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1448. if Debounces.isPassive == false then
  1449. fire.Enabled = false
  1450. light.Range = 0
  1451. fight:Pause()
  1452. sans:Resume()
  1453. efxBlock.Transparency = 1
  1454. else
  1455. fire.Enabled = true
  1456. light.Range = 10
  1457. fight:Resume()
  1458. sans:Pause()
  1459. efxBlock.Transparency = 0
  1460. end local tD=3
  1461. for i,v in pairs (rayModel:children()) do
  1462. if v.Transparency >= 1 then
  1463. v:Destroy()
  1464. else
  1465. v.CanCollide = true
  1466. local parts = v:GetTouchingParts()
  1467. v.CanCollide = false
  1468. for i = 1,#parts do
  1469. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1470. RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1471. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1472. RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1473. end
  1474. end
  1475. v.Size = v.Size / Vector3.new(1+(v.Transparency/tD),1+(v.Transparency/tD),1)--- Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1476. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1477. end
  1478. end
  1479. for i = 1,#Joints do
  1480. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1481. end
  1482. local sineval = math.sin(tick() * 2) * 3
  1483. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1484. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1485. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement