local G=_G.HDAdminMain local h=G.gui.CustomTopBar for h,F in pairs(G.signals:GetChildren())do if F:IsA("\082\101\109\111\116\101\069\118\101\110\116")then F.OnClientEvent:Connect(function(h)if not G.initialized then G.client.Signals.Initialized.Event:Wait()end if F.Name=="\067\104\097\110\103\101\083\116\097\116"then local F=h[1]G.pdata[F]=h[2]if F=="\068\111\110\111\114"then(G:GetModule("\080\097\103\101\083\112\101\099\105\097\108")):UpdateDonorFrame()return end else if F.Name=="\073\110\115\101\114\116\083\116\097\116"then table.insert(G.pdata[h[1]],h[2])return end if F.Name=="\082\101\109\111\118\101\083\116\097\116"then local F=h[1]local e=h[2]for h,o in pairs(G.pdata[F])do if tostring(o)==tostring(e)then table.remove(G.pdata[F],h)return end end return end if F.Name=="\078\111\116\105\099\101"or F.Name=="\069\114\114\111\114"then(G:GetModule("\078\111\116\105\099\101\115")):Notice(F.Name,h[1],h[2],h[3])return end if F.Name=="\083\104\111\119\080\097\103\101"then(G:GetModule("\071\085\073\115")):ShowSpecificPage(h[1],h[2])return end if F.Name=="\083\104\111\119\066\097\110\110\101\100\085\115\101\114"then(G:GetModule("\071\085\073\115")):ShowSpecificPage("\065\100\109\105\110","\066\097\110\108\097\110\100")if type(h)=="\116\097\098\108\101"then(G:GetModule("\099\102")):ShowBannedUser(h)return end else if F.Name=="\083\101\116\067\097\109\101\114\097\083\117\098\106\101\099\116"then(G:GetModule("\099\102")):SetCameraSubject(h)return end if F.Name=="\067\108\101\097\114"then(G:GetModule("\077\101\115\115\097\103\101\115")):ClearMessageContainer()return end if F.Name=="\083\104\111\119\087\097\114\110\105\110\103"then(G:GetModule("\099\102")):ShowWarning(h)return end if F.Name=="\077\101\115\115\097\103\101"then(G:GetModule("\077\101\115\115\097\103\101\115")):Message(h)return end if F.Name=="\072\105\110\116"then(G:GetModule("\077\101\115\115\097\103\101\115")):Hint(h)return end if F.Name=="\071\108\111\098\097\108\065\110\110\111\117\110\099\101\109\101\110\116"then(G:GetModule("\077\101\115\115\097\103\101\115")):GlobalAnnouncement(h)return end if F.Name=="\083\101\116\067\111\114\101\071\117\105\069\110\097\098\108\101\100"then G.starterGui:SetCoreGuiEnabled(Enum.CoreGuiType[h[1]],h[2])return end if F.Name=="\067\114\101\097\116\101\076\111\103"then(G:GetModule("\099\102")):CreateNewCommandMenu(h[1],h[2],5)return end if F.Name=="\067\114\101\097\116\101\065\108\101\114\116"then(G:GetModule("\099\102")):CreateNewCommandMenu("\097\108\101\114\116",{h[1],h[2]},8,true)return end if F.Name=="\067\114\101\097\116\101\066\097\110\077\101\110\117"then(G:GetModule("\099\102")):CreateNewCommandMenu("\098\097\110\077\101\110\117",h,6)return end if F.Name=="\067\114\101\097\116\101\080\111\108\108\077\101\110\117"then(G:GetModule("\099\102")):CreateNewCommandMenu("\112\111\108\108\077\101\110\117",h,9)return end if F.Name=="\067\114\101\097\116\101\077\101\110\117"then(G:GetModule("\099\102")):CreateNewCommandMenu(h.MenuName,h.Data,h.TemplateId)return end if F.Name=="\067\114\101\097\116\101\067\111\109\109\097\110\100\077\101\110\117"then(G:GetModule("\099\102")):CreateNewCommandMenu(h[1],h[2],h[3])return end if F.Name=="\082\097\110\107\067\104\097\110\103\101\100"then(G:GetModule("\099\102")):UpdateIconVisiblity();(G:GetModule("\080\097\103\101\065\098\111\117\116")):UpdateRankName();(G:GetModule("\071\085\073\115")):DisplayPagesAccordingToRank(true)if G.initialized then(G:GetModule("\080\097\103\101\067\111\109\109\097\110\100\115")):CreateCommands()return end elseif F.Name=="\069\120\101\099\117\116\101\067\108\105\101\110\116\067\111\109\109\097\110\100"then local F="\070\117\110\099\116\105\111\110"if h[4].UnFunction then F="\085\110\070\117\110\099\116\105\111\110"end local e=(G:GetModule("\067\108\105\101\110\116\067\111\109\109\097\110\100\115"))[h[3]]if e then local G=e[F]if G then G(h[1],h[2],e)return end end elseif F.Name=="\082\101\112\108\105\099\097\116\105\111\110\069\102\102\101\099\116\067\108\105\101\110\116\067\111\109\109\097\110\100"then local F=(G:GetModule("\067\108\105\101\110\116\067\111\109\109\097\110\100\115"))[h[1]]if F then local G=F.ReplicationEffect if G then G(h[2],h[3],F)return end end elseif F.Name=="\065\099\116\105\118\097\116\101\067\108\105\101\110\116\067\111\109\109\097\110\100"then local F=h[1]local e=h[2]local o=e if o then o=e.Speed~=0 and e.Speed or nil end if o then G.commandSpeeds[F]=o local h=G.gui local e=G:GetModule("\099\102")e:DestroyCommandMenuFrame(h:FindFirstChild("\067\111\109\109\097\110\100\077\101\110\117\102\108\121"))end if G.commandSpeeds[F]then for h,e in pairs(G.commandSpeeds)do if h~=F then local F=G:GetModule("\099\102")F:DeactivateCommand(h)end end end G.commandsAllowedToUse[F]=true local m=G:GetModule("\099\102")m:ActivateClientCommand(F,e)local B=nil local P=nil for G,h in pairs(G.commandsWithMenus)do B=h[F]if B then P=tonumber(G:match("\037\100\043"))break end end if B then local h=G:GetModule("\099\102")h:CreateNewCommandMenu(F,B,P)return end else if F.Name=="\068\101\097\099\116\105\118\097\116\101\067\108\105\101\110\116\067\111\109\109\097\110\100"then local F=G.GetModule(G,"\099\102")F.DeactivateCommand(F,h[1])return end if F.Name=="\070\097\100\101\073\110\073\099\111\110"then return end if F.Name=="\067\104\097\110\103\101\077\097\105\110\086\097\114\105\097\098\108\101"then G[h[1]]=h end end end end end)elseif F:IsA("\082\101\109\111\116\101\070\117\110\099\116\105\111\110")then function F.OnClientInvoke(h)if not G.initialized then G.client.Signals.Initialized.Event:Wait()end if F.Name~="\071\101\116\076\111\099\097\108\068\097\116\101"then return end return os.date("\042\116",h)end end end return{}
-- Decompiled with the Synapse X Luau decompiler.

local l__HDAdminMain__1 = _G.HDAdminMain
local l__CustomTopBar__2 = l__HDAdminMain__1.gui.CustomTopBar
for v3, v4 in pairs(l__HDAdminMain__1.signals:GetChildren()) do
	if v4:IsA("RemoteEvent") then
		v4.OnClientEvent:Connect(function(p1)
			if not l__HDAdminMain__1.initialized then
				l__HDAdminMain__1.client.Signals.Initialized.Event:Wait()
			end
			if v4.Name == "ChangeStat" then
				local v5 = p1[1]
				l__HDAdminMain__1.pdata[v5] = p1[2]
				if v5 == "Donor" then
					l__HDAdminMain__1:GetModule("PageSpecial"):UpdateDonorFrame()
					return
				end
			else
				if v4.Name == "InsertStat" then
					table.insert(l__HDAdminMain__1.pdata[p1[1]], p1[2])
					return
				end
				if v4.Name == "RemoveStat" then
					local v6 = p1[1]
					local v7 = p1[2]
					for v8, v9 in pairs(l__HDAdminMain__1.pdata[v6]) do
						if tostring(v9) == tostring(v7) then
							table.remove(l__HDAdminMain__1.pdata[v6], v8)
							return
						end
					end
					return
				end
				if v4.Name == "Notice" or v4.Name == "Error" then
					l__HDAdminMain__1:GetModule("Notices"):Notice(v4.Name, p1[1], p1[2], p1[3])
					return
				end
				if v4.Name == "ShowPage" then
					l__HDAdminMain__1:GetModule("GUIs"):ShowSpecificPage(p1[1], p1[2])
					return
				end
				if v4.Name == "ShowBannedUser" then
					l__HDAdminMain__1:GetModule("GUIs"):ShowSpecificPage("Admin", "Banland")
					if type(p1) == "table" then
						l__HDAdminMain__1:GetModule("cf"):ShowBannedUser(p1)
						return
					end
				else
					if v4.Name == "SetCameraSubject" then
						l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(p1)
						return
					end
					if v4.Name == "Clear" then
						l__HDAdminMain__1:GetModule("Messages"):ClearMessageContainer()
						return
					end
					if v4.Name == "ShowWarning" then
						l__HDAdminMain__1:GetModule("cf"):ShowWarning(p1)
						return
					end
					if v4.Name == "Message" then
						l__HDAdminMain__1:GetModule("Messages"):Message(p1)
						return
					end
					if v4.Name == "Hint" then
						l__HDAdminMain__1:GetModule("Messages"):Hint(p1)
						return
					end
					if v4.Name == "GlobalAnnouncement" then
						l__HDAdminMain__1:GetModule("Messages"):GlobalAnnouncement(p1)
						return
					end
					if v4.Name == "SetCoreGuiEnabled" then
						l__HDAdminMain__1.starterGui:SetCoreGuiEnabled(Enum.CoreGuiType[p1[1]], p1[2])
						return
					end
					if v4.Name == "CreateLog" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu(p1[1], p1[2], 5)
						return
					end
					if v4.Name == "CreateAlert" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu("alert", { p1[1], p1[2] }, 8, true)
						return
					end
					if v4.Name == "CreateBanMenu" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu("banMenu", p1, 6)
						return
					end
					if v4.Name == "CreatePollMenu" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu("pollMenu", p1, 9)
						return
					end
					if v4.Name == "CreateMenu" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu(p1.MenuName, p1.Data, p1.TemplateId)
						return
					end
					if v4.Name == "CreateCommandMenu" then
						l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu(p1[1], p1[2], p1[3])
						return
					end
					if v4.Name == "RankChanged" then
						l__HDAdminMain__1:GetModule("cf"):UpdateIconVisiblity()
						l__HDAdminMain__1:GetModule("PageAbout"):UpdateRankName()
						l__HDAdminMain__1:GetModule("GUIs"):DisplayPagesAccordingToRank(true)
						if l__HDAdminMain__1.initialized then
							l__HDAdminMain__1:GetModule("PageCommands"):CreateCommands()
							return
						end
					elseif v4.Name == "ExecuteClientCommand" then
						local v10 = "Function"
						if p1[4].UnFunction then
							v10 = "UnFunction"
						end
						local v11 = l__HDAdminMain__1:GetModule("ClientCommands")[p1[3]]
						if v11 then
							local v12 = v11[v10]
							if v12 then
								v12(p1[1], p1[2], v11)
								return
							end
						end
					elseif v4.Name == "ReplicationEffectClientCommand" then
						local v13 = l__HDAdminMain__1:GetModule("ClientCommands")[p1[1]]
						if v13 then
							local l__ReplicationEffect__14 = v13.ReplicationEffect
							if l__ReplicationEffect__14 then
								l__ReplicationEffect__14(p1[2], p1[3], v13)
								return
							end
						end
					elseif v4.Name == "ActivateClientCommand" then
						local v15 = p1[1]
						local v16 = p1[2]
						local v17 = v16
						if v17 then
							v17 = v16.Speed ~= 0 and v16.Speed or nil
						end
						if v17 then
							l__HDAdminMain__1.commandSpeeds[v15] = v17
							local l__gui__18 = l__HDAdminMain__1.gui
							local v19 = l__HDAdminMain__1:GetModule("cf")
							v19:DestroyCommandMenuFrame((l__gui__18:FindFirstChild("CommandMenufly")))
						end
						if l__HDAdminMain__1.commandSpeeds[v15] then
							for v20, v21 in pairs(l__HDAdminMain__1.commandSpeeds) do
								if v20 ~= v15 then
									local v22 = l__HDAdminMain__1:GetModule("cf")
									v22:DeactivateCommand(v20)
								end
							end
						end
						l__HDAdminMain__1.commandsAllowedToUse[v15] = true
						local v23 = l__HDAdminMain__1:GetModule("cf")
						v23:ActivateClientCommand(v15, v16)
						local v24 = nil
						local v25 = nil
						for v26, v27 in pairs(l__HDAdminMain__1.commandsWithMenus) do
							v24 = v27[v15]
							if v24 then
								v25 = tonumber(v26:match("%d+"))
								break
							end
						end
						if v24 then
							local v28 = l__HDAdminMain__1:GetModule("cf")
							v28:CreateNewCommandMenu(v15, v24, v25)
							return
						end
					else
						if v4.Name == "DeactivateClientCommand" then
							local v29 = l__HDAdminMain__1.GetModule(l__HDAdminMain__1, "cf")
							v29.DeactivateCommand(v29, p1[1])
							return
						end
						if v4.Name == "FadeInIcon" then
							return
						end
						if v4.Name == "ChangeMainVariable" then
							l__HDAdminMain__1[p1[1]] = p1
						end
					end
				end
			end
		end)
	elseif v4:IsA("RemoteFunction") then
		function v4.OnClientInvoke(p2)
			if not l__HDAdminMain__1.initialized then
				l__HDAdminMain__1.client.Signals.Initialized.Event:Wait()
			end
			if v4.Name ~= "GetLocalDate" then
				return
			end
			return os.date("*t", p2)
		end
	end
end
return {}
