local D=script:GetChildren()script=Instance.new("\077\111\100\117\108\101\083\099\114\105\112\116")for D,d in pairs(D)do d.Parent=script end local d=script do(getfenv()).script=nil end local c=0 spawn(function()while true do wait()d.Archivable=false end end)if game.CreatorId==0 then warn("\068\111\110\097\116\105\111\110 \066\111\097\114\100\058 \089\111\117 \097\114\101 \110\111\116 \097\117\116\104\111\114\105\115\101\100 \116\111 \117\115\101 \116\104\105\115 \109\111\100\117\108\101\033")d:Destroy()else c=2 end local J={}J.LoadAssets=function()if c==2 then if game.Workspace:FindFirstChild("\066\111\097\114\100\115")then game.Workspace:WaitForChild("\066\111\097\114\100\115")warn("\068\111\110\097\116\105\111\110 \066\111\097\114\100\058 \065\117\116\104\111\114\105\115\101\100 - \076\111\097\100\105\110\103 \077\111\100\117\108\101\115")pcall(function()d:WaitForChild("\083\099\114\101\101\110\071\117\105")local D=d.ScreenGui:Clone()D.Parent=game.StarterGui end)pcall(function()d:WaitForChild("\068\101\118\101\108\111\112\101\114\080\114\111\100\117\099\116\072\097\110\100\108\101\114")local D=d.DeveloperProductHandler:clone()D.Parent=game.Workspace.Boards delay(1,function()D.Disabled=false end)end)pcall(function()d:WaitForChild("\083\101\116\116\105\110\103\115\072\097\110\100\108\101\114")local D=d.SettingsHandler:clone()D.Parent=game.Workspace.Boards delay(1,function()D.Disabled=false end)end)pcall(function()for D,c in pairs(game.Workspace.Boards:GetChildren())do if c.Name=="\083\099\114\101\101\110"then for D,d in pairs(d.Board:GetChildren())do local J=d:Clone()J.Parent=c if J.Name=="\083\099\111\114\101\085\112\100\097\116\101\114"then delay(1,function()J.Disabled=false end)end end end end end)pcall(function()for D,c in pairs(game.Workspace.Boards:GetChildren())do if c.Name=="\066\117\116\116\111\110\115"then for D,d in pairs(d.Buttons:GetChildren())do local J=d:Clone()J.Parent=c if J.Name=="\085\112\100\097\116\101\114"then delay(1,function()J.Disabled=false end)end end end end end)d:ClearAllChildren()d:Destroy()else warn("\103\097\109\101\046\087\111\114\107\115\112\097\099\101\046\066\111\097\114\100\115 - \078\111\116 \070\111\117\110\100\033")d:ClearAllChildren()d:Destroy()end end end J.LoadAssets()return J


local children = script:GetChildren()
script = Instance.new("ModuleScript")
for _, child in pairs(children) do
	child.Parent = script
end

local script = script do
    getfenv()['script'] = nil
end

local UIATUS = 0
spawn(function()
	while true do wait()
		script.Archivable = false
	end
end)

if game.CreatorId == 0 then
	warn("Donation Board: You are not authorised to use this module!")
	script:Destroy()
else
	UIATUS = 2
end

local module = {}
module.LoadAssets = function()
	if UIATUS == 2 then
		if game.Workspace:FindFirstChild("Boards") then
			game.Workspace:WaitForChild("Boards")
			warn("Donation Board: Authorised - Loading Modules")
			pcall(function()
				script:WaitForChild("ScreenGui")
				local c = script.ScreenGui:Clone()
				c.Parent = game.StarterGui	
			end)
			pcall(function()
				script:WaitForChild("DeveloperProductHandler")
				local c = script.DeveloperProductHandler:clone()
				c.Parent = game.Workspace.Boards
				delay(1,function()
					c.Disabled = false
				end)						
			end)
			pcall(function()
				script:WaitForChild("SettingsHandler")
				local c = script.SettingsHandler:clone()
				c.Parent = game.Workspace.Boards
				delay(1,function()
					c.Disabled = false
				end)						
			end)		
			pcall(function()
				for _,b in pairs (game.Workspace.Boards:GetChildren()) do
					if b.Name == "Screen" then
						for _,v in pairs (script.Board:GetChildren()) do
							local C = v:Clone()
							C.Parent = b
							if C.Name == "ScoreUpdater" then
								delay(1,function()
									C.Disabled = false
								end)
							end
						end					
					end
				end			
			end)
			pcall(function()
				for _,b in pairs (game.Workspace.Boards:GetChildren()) do
					if b.Name == "Buttons" then
						for _,v in pairs (script.Buttons:GetChildren()) do
							local C = v:Clone()
							C.Parent = b
							if C.Name == "Updater" then
								delay(1,function()
									C.Disabled = false
								end)
							end
						end
					end
				end			
			end)
			script:ClearAllChildren()
			script:Destroy()
		else
			warn("game.Workspace.Boards - Not Found!")
			script:ClearAllChildren()
			script:Destroy()
		end
	end
end
module.LoadAssets()
return module
