local function d(d,u,x,N,K,l,F)GiftFrame.Visible=d DailyRewardFrame.Visible=u RebirthFrame.Visible=x StoreFrame.Visible=N VipFrame.Visible=K InventoryFrame.Visible=l CaseStoreFrame.Visible=F end GiftFrame.Changed:Connect(function()if GiftFrame.Visible==true then d(true,false,false,false,false,false,false)end end)DailyRewardFrame.Changed:Connect(function()if DailyRewardFrame.Visible==true then d(false,true,false,false,false,false,false)end end)RebirthFrame.Changed:Connect(function()if RebirthFrame.Visible==true then d(false,false,true,false,false,false,false)end end)StoreFrame.Changed:Connect(function()if StoreFrame.Visible==true then d(false,false,false,true,false,false,false)end end)VipFrame.Changed:Connect(function()if VipFrame.Visible==true then d(false,false,false,false,true,false,false)end end)InventoryFrame.Changed:Connect(function()if InventoryFrame.Visible==true then d(false,false,false,false,false,true,false)end end)CaseStoreFrame.Changed:Connect(function()if CaseStoreFrame.Visible==true then d(false,false,false,false,false,false,true)end end)
----- Script -----

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)
