function module.Notice(G,w,j,A,H)if not main.pdata or not main.pdata.SetupData then repeat wait(.1)until main.pdata and main.pdata.SetupData end if main.settings.DisableAllNotices~=true then spawn(function()local G=template:Clone()G.Visible=true G.Title.Text=j G.Desc.Text=A G.NoticeType.Value=w if type(H)=="\116\097\098\108\101"then local w=true local function j()if w then w=false return true end end local A=H[1]if A=="\083\104\111\119\083\112\101\099\105\102\105\099\080\097\103\101"then G.Countdown.Value=20 G.TextButton.MouseButton1Down:Connect(function()if not j()then return end;(main:GetModule("\071\085\073\115")):ShowSpecificPage(H[2],H[3])endNotice(G)end)elseif A=="\084\101\108\101\112\111\114\116"then G.Countdown.Value=25 G.TextButton.MouseButton1Down:Connect(function()if not j()then return end main.teleportService:Teleport(H[2])G.Desc.Text="\084\101\108\101\112\111\114\116\105\110\103\046\046\046"end)elseif A=="\080\077"then G.Countdown.Value=999 G.TextButton.MouseButton1Down:Connect(function()if not j()then return end;(main:GetModule("\099\102")):CreateNewCommandMenu("\112\114\105\118\097\116\101\077\101\115\115\097\103\101",{H[2];H[3]},4)endNotice(G)end)end end G.CloseX.MouseButton1Down:Connect(function()endNotice(G)end)table.insert(noticeQueue,G)Queue()end)end end

function module:Notice(noticeType, title, description, args)
	if not main.pdata or not main.pdata.SetupData then
		repeat wait(0.1) until (main.pdata and main.pdata.SetupData)
	end
	if main.settings.DisableAllNotices ~= true then
		spawn(function()
			local notice = template:Clone()
			notice.Visible = true
			notice.Title.Text = title
			notice.Desc.Text = description
			notice.NoticeType.Value = noticeType
			--[[spawn(function()
				wait()
				if notice.Desc.TextBounds.Y > 35 then
					notice.Desc.Position = UDim2.new(0.05, 0, 0.37, 0)
				end
			end)--]]
			if type(args) == "table" then
				local de = true
				local function checkDe()
					if de then
						de = false
						return true
					end
				end
				local clickAction = args[1]
				if clickAction == "ShowSpecificPage" then
					notice.Countdown.Value = 20
					notice.TextButton.MouseButton1Down:Connect(function()
						if not checkDe() then return end
						main:GetModule("GUIs"):ShowSpecificPage(args[2], args[3])
						endNotice(notice)
					end)
				elseif clickAction == "Teleport" then
					notice.Countdown.Value = 25
					notice.TextButton.MouseButton1Down:Connect(function()
						if not checkDe() then return end
						main.teleportService:Teleport(args[2])
						notice.Desc.Text = "Teleporting..."
					end)
				elseif clickAction == "PM" then
					notice.Countdown.Value = 999
					notice.TextButton.MouseButton1Down:Connect(function()
						if not checkDe() then return end
						main:GetModule("cf"):CreateNewCommandMenu("privateMessage", {args[2], args[3]}, 4)
						endNotice(notice)
					end)
				end
			end
			notice.CloseX.MouseButton1Down:Connect(function()
				endNotice(notice)
			end)
			table.insert(noticeQueue, notice)
			Queue()
		end)
	end
end

