local t=game:GetService("\080\108\097\121\101\114\115")local U=script.Parent.Parent.Parent local D=require(U.Parent.Fusion)local q=require(U.SourceCode.Client.UI.StateExtensions)local p=require(U.Parent.OnyxUI)local d=require(script.States)local i=require(U.Config)local z=require(script.ScreenGuis.AvalogMenu)local o={Scope=D.scoped(D)}function o.Start(U)q:Initialize()q:Start()d.Theme:set((i:Get()).Theme);(p.Themer.Theme:is(D.peek(d.Theme))):during(function()z(U.Scope,{Parent=t.LocalPlayer:WaitForChild("\080\108\097\121\101\114\071\117\105")})end)end return o
local Players = game:GetService("Players")

local Avalog = script.Parent.Parent.Parent
local Fusion = require(Avalog.Parent.Fusion)
local StateExtensions = require(Avalog.SourceCode.Client.UI.StateExtensions)
local OnyxUI = require(Avalog.Parent.OnyxUI)
local States = require(script.States)
local Config = require(Avalog.Config)

local AvalogMenu = require(script.ScreenGuis.AvalogMenu)

local UIService = {
	Scope = Fusion.scoped(Fusion),
}

function UIService:Start()
	StateExtensions:Initialize()
	StateExtensions:Start()

	States.Theme:set(Config:Get().Theme)

	OnyxUI.Themer.Theme:is(Fusion.peek(States.Theme)):during(function()
		AvalogMenu(self.Scope, {
			Parent = Players.LocalPlayer:WaitForChild("PlayerGui"),
		})
	end)
end

return UIService
