local function U(U,o,N,q,R,y,G)GiftFrame.Visible=U DailyRewardFrame.Visible=o RebirthFrame.Visible=N StoreFrame.Visible=q VipFrame.Visible=R InventoryFrame.Visible=y CaseStoreFrame.Visible=G end GiftFrame.Changed:Connect(function()if GiftFrame.Visible==true then U(true,false,false,false,false,false,false)end end)DailyRewardFrame.Changed:Connect(function()if DailyRewardFrame.Visible==true then U(false,true,false,false,false,false,false)end end)RebirthFrame.Changed:Connect(function()if RebirthFrame.Visible==true then U(false,false,true,false,false,false,false)end end)StoreFrame.Changed:Connect(function()if StoreFrame.Visible==true then U(false,false,false,true,false,false,false)end end)VipFrame.Changed:Connect(function()if VipFrame.Visible==true then U(false,false,false,false,true,false,false)end end)InventoryFrame.Changed:Connect(function()if InventoryFrame.Visible==true then U(false,false,false,false,false,true,false)end end)CaseStoreFrame.Changed:Connect(function()if CaseStoreFrame.Visible==true then U(false,false,false,false,false,false,true)end end)


local function DisableGui (Gift,Daily,Rebirth,Store,Vip,Inventory,CaseStore)
	GiftFrame.Visible = Gift
	DailyRewardFrame.Visible = Daily
	RebirthFrame.Visible = Rebirth
	StoreFrame.Visible = Store
	VipFrame.Visible = Vip
	InventoryFrame.Visible = Inventory
	CaseStoreFrame.Visible = CaseStore
end

GiftFrame.Changed:Connect(function()
	if GiftFrame.Visible == true then
		DisableGui(true,false,false,false,false,false,false)
	end
end)

DailyRewardFrame.Changed:Connect(function()
	if DailyRewardFrame.Visible == true then
		DisableGui(false,true,false,false,false,false,false)
		end
end)

RebirthFrame.Changed:Connect(function()
	if RebirthFrame.Visible == true then
		DisableGui(false,false,true,false,false,false,false)
	end
end)

StoreFrame.Changed:Connect(function()
	if StoreFrame.Visible == true then
		DisableGui(false,false,false,true,false,false,false)
	end
end)

VipFrame.Changed:Connect(function()
	if VipFrame.Visible == true then
		DisableGui(false,false,false,false,true,false,false)
	end
end)

InventoryFrame.Changed:Connect(function()
	if InventoryFrame.Visible == true then
		DisableGui(false,false,false,false,false,true,false)
	end
end)

CaseStoreFrame.Changed:Connect(function()
	if CaseStoreFrame.Visible == true then
		DisableGui(false,false,false,false,false,false,true)
	end
end)
