UserInputService=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")IsDisplayed=script.Parent.IsDisplayed IsHiddenByOtherGUI=script.Parent.IsHiddenByOtherGUI HideGuiEnabled=game.ReplicatedStorage.ClientConfig.HideGuiEnabled IsGameMenuOpen=script.Parent.Parent.GameMenu.IsOpen MouseHovering=false function Update()IsDisplayed.Value=(not HideGuiEnabled.Value or MouseHovering or UserInputService.TouchEnabled)and not IsHiddenByOtherGUI.Value end HideGuiEnabled.Changed:Connect(Update)IsHiddenByOtherGUI.Changed:Connect(Update)IsGameMenuOpen.Changed:Connect(function(l)IsHiddenByOtherGUI.Value=l end);(UserInputService:GetPropertyChangedSignal("\077\111\117\115\101\069\110\097\098\108\101\100")):Connect(Update)script.Parent.MouseEnter:Connect(function()MouseHovering=true Update()end)script.Parent.MouseLeave:Connect(function()MouseHovering=false Update()end)IsHiddenByOtherGUI.Value=IsGameMenuOpen.Value Update()


UserInputService = game:GetService("UserInputService")

IsDisplayed = script.Parent.IsDisplayed
IsHiddenByOtherGUI = script.Parent.IsHiddenByOtherGUI
HideGuiEnabled = game.ReplicatedStorage.ClientConfig.HideGuiEnabled
IsGameMenuOpen = script.Parent.Parent.GameMenu.IsOpen

MouseHovering = false

function Update()
	IsDisplayed.Value =
		(not HideGuiEnabled.Value or MouseHovering or UserInputService.TouchEnabled) and not IsHiddenByOtherGUI.Value
end

HideGuiEnabled.Changed:Connect(Update)
IsHiddenByOtherGUI.Changed:Connect(Update)
IsGameMenuOpen.Changed:Connect(function(value)
	IsHiddenByOtherGUI.Value = value
end)
UserInputService:GetPropertyChangedSignal("MouseEnabled"):Connect(Update)
script.Parent.MouseEnter:Connect(function()
	MouseHovering = true
	Update()
end)
script.Parent.MouseLeave:Connect(function()
	MouseHovering = false
	Update()
end)

IsHiddenByOtherGUI.Value = IsGameMenuOpen.Value
Update()
