return function()local f,G,m,q,r,c,R,S,K,n,x,p,i,b,J,O,j,B,Q,l,g,E,A,Z,a,X,z,N,M,w,u,e,h,F,o,Y,d,V,s,H,v,t,I,k,W,y,D,U,T,P,L,C,fF,GF,mF,qF,rF,cF,RF,SF,KF=_G,game,script,getfenv,setfenv,workspace,getmetatable,setmetatable,loadstring,coroutine,rawequal,typeof,print,math,warn,error,pcall,pcall,xpcall,select,rawset,rawget,ipairs,pairs,next,Rect,Axes,os,tick,Faces,unpack,string,Color3,newproxy,tostring,tonumber,Instance,TweenInfo,BrickColor,NumberRange,ColorSequence,NumberSequence,ColorSequenceKeypoint,NumberSequenceKeypoint,PhysicalProperties,Region3int16,Vector3int16,elapsedTime,require,table,type,wait,Enum,UDim,UDim2,Vector2,Vector3,Region3,CFrame,Ray,delay local nF=m local xF=service local pF=client local iF,bF,JF,OF,jF,BF,QF local function lF()BF=pF.UI iF=pF.Anti bF=pF.Core QF=pF.Variables JF=pF.Functions OF=pF.Process jF=pF.Remote end;(q()).client=nil;(q()).service=nil;(q()).script=nil pF.Process={Init=lF,Remote=function(f,G,...)local m={...}jF.Received=jF.Received+1 if L(G)=="\115\116\114\105\110\103"then if G==pF.DepsName.."\071\073\086\069\095\075\069\089"then if not bF.Key then bF.Key=m[1]pF.Finish_Loading()end elseif jF.UnEncrypted[G]then jF.UnEncrypted[G](...)elseif bF.Key then local f=jF.Decrypt(G,bF.Key)local q=jF.Commands[f]if q then local G,r=xF.TrackTask("\082\101\109\111\116\101\058 "..f,q,m)if not G and r then logError(r)end end end end end,LogService=function(f,G) end,ErrorMessage=function(f,G,m)if f and(f~="\110\105\108"and(f~=""and(e.find(f,"\058\058\065\100\111\110\105\115\058\058")or e.find(f,nF.Name)or m==nF)))then logError(o(f)..(" - "..o(G)))end if(m==nil or not G or G=="")and not(G and e.find(G,"\067\111\114\101\071\117\105\046\082\111\098\108\111\120\071\117\105"))then end end;Chat=function(f)if not xF.Player or xF.Player.Parent~=xF.Players then jF.Fire("\080\114\111\099\101\115\115\067\104\097\116",f)end end;CharacterAdded=function()BF.GetHolder()xF.Events.CharacterAdded:fire()end,CharacterRemoving=function()if QF.UIKeepAlive then for f,G in a,pF.GUIs do if G.Class=="\083\099\114\101\101\110\071\117\105"or G.Class=="\071\117\105\077\097\105\110"or G.Class=="\084\101\120\116\076\097\098\101\108"then if G.CanKeepAlive then G.KeepAlive=true G.KeepParent=G.Object.Parent G.Object.Parent=nil elseif xF.StarterGui.ResetPlayerGuiOnSpawn then B(G.Destroy,G)end end end end if QF.GuiViewFolder then QF.GuiViewFolder:Destroy()QF.GuiViewFolder=nil end if QF.ChatEnabled then xF.StarterGui:SetCoreGuiEnabled("\067\104\097\116",true)end if QF.PlayerListEnabled then xF.StarterGui:SetCoreGuiEnabled("\080\108\097\121\101\114\076\105\115\116",true)end local f=xF.UserInputService:GetFocusedTextBox()if f then f:ReleaseFocus()end xF.Events.CharacterRemoving:fire()end}end
--// Processing
return function()
	local _G, game, script, getfenv, setfenv, workspace, getmetatable, setmetatable, loadstring, coroutine, rawequal, typeof, print, math, warn, error, pcall, pcall, xpcall, select, rawset, rawget, ipairs, pairs, next, Rect, Axes, os, tick, Faces, unpack, string, Color3, newproxy, tostring, tonumber, Instance, TweenInfo, BrickColor, NumberRange, ColorSequence, NumberSequence, ColorSequenceKeypoint, NumberSequenceKeypoint, PhysicalProperties, Region3int16, Vector3int16, elapsedTime, require, table, type, wait, Enum, UDim, UDim2, Vector2, Vector3, Region3, CFrame, Ray, delay =
		_G,
		game,
		script,
		getfenv,
		setfenv,
		workspace,
		getmetatable,
		setmetatable,
		loadstring,
		coroutine,
		rawequal,
		typeof,
		print,
		math,
		warn,
		error,
		pcall,
		pcall,
		xpcall,
		select,
		rawset,
		rawget,
		ipairs,
		pairs,
		next,
		Rect,
		Axes,
		os,
		tick,
		Faces,
		unpack,
		string,
		Color3,
		newproxy,
		tostring,
		tonumber,
		Instance,
		TweenInfo,
		BrickColor,
		NumberRange,
		ColorSequence,
		NumberSequence,
		ColorSequenceKeypoint,
		NumberSequenceKeypoint,
		PhysicalProperties,
		Region3int16,
		Vector3int16,
		elapsedTime,
		require,
		table,
		type,
		wait,
		Enum,
		UDim,
		UDim2,
		Vector2,
		Vector3,
		Region3,
		CFrame,
		Ray,
		delay

	local script = script
	local service = service
	local client = client
	local Anti, Core, Functions, Process, Remote, UI, Variables
	local function Init()
		UI = client.UI
		Anti = client.Anti
		Core = client.Core
		Variables = client.Variables
		Functions = client.Functions
		Process = client.Process
		Remote = client.Remote
	end

	getfenv().client = nil
	getfenv().service = nil
	getfenv().script = nil

	client.Process = {
		Init = Init,
		Remote = function(data, com, ...)
			local args = { ... }
			Remote.Received = Remote.Received + 1
			if type(com) == "string" then
				if com == client.DepsName .. "GIVE_KEY" then
					if not Core.Key then
						Core.Key = args[1]
						client.Finish_Loading()
					end
				elseif Remote.UnEncrypted[com] then
					Remote.UnEncrypted[com](...)
				elseif Core.Key then
					local comString = Remote.Decrypt(com, Core.Key)
					local command = Remote.Commands[comString]
					if command then
						--local ran,err = pcall(command, args) --task service.Threads.RunTask("REMOTE:"..comString,command,args)
						local ran, err = service.TrackTask("Remote: " .. comString, command, args)
						if not ran and err then
							logError(err)
						end
					end
				end
			end
		end,

		LogService = function(Message, Type)
			--service.FireEvent("Output", Message, Type)
		end,

		ErrorMessage = function(Message, Trace, Script)
			--service.FireEvent("ErrorMessage", Message, Trace, Script)
			if
				Message
				and Message ~= "nil"
				and Message ~= ""
				and (string.find(Message, "::Adonis::") or string.find(Message, script.Name) or Script == script)
			then
				logError(tostring(Message) .. " - " .. tostring(Trace))
			end

			if
				(Script == nil or (not Trace or Trace == "")) and not (
					Trace and string.find(Trace, "CoreGui.RobloxGui")
				)
			then
				--Anti.Detected("log","Scriptless/Traceless error found. Script: "..tostring(Script).." - Trace: "..tostring(Trace))
			end
		end,

		Chat = function(msg)
			--service.FireEvent("Chat",msg)
			if not service.Player or service.Player.Parent ~= service.Players then
				Remote.Fire("ProcessChat", msg)
			end
		end,

		CharacterAdded = function()
			UI.GetHolder()
			service.Events.CharacterAdded:fire()
		end,

		CharacterRemoving = function()
			if Variables.UIKeepAlive then
				for ind, g in next, client.GUIs do
					if g.Class == "ScreenGui" or g.Class == "GuiMain" or g.Class == "TextLabel" then
						if g.CanKeepAlive then
							g.KeepAlive = true
							g.KeepParent = g.Object.Parent
							g.Object.Parent = nil
						elseif service.StarterGui.ResetPlayerGuiOnSpawn then
							pcall(g.Destroy, g)
						end
					end
				end
			end

			if Variables.GuiViewFolder then
				Variables.GuiViewFolder:Destroy()
				Variables.GuiViewFolder = nil
			end

			if Variables.ChatEnabled then
				service.StarterGui:SetCoreGuiEnabled("Chat", true)
			end

			if Variables.PlayerListEnabled then
				service.StarterGui:SetCoreGuiEnabled("PlayerList", true)
			end

			local textbox = service.UserInputService:GetFocusedTextBox()
			if textbox then
				textbox:ReleaseFocus()
			end

			service.Events.CharacterRemoving:fire()
		end,
	}
end
