guiService.MenuClosed:Connect(function()if VRService.VREnabled then return end menuOpen=false if not IconController.controllerModeEnabled then IconController.setTopbarEnabled(IconController.topbarEnabled,false)end end)guiService.MenuOpened:Connect(function()if VRService.VREnabled then return end menuOpen=true IconController.setTopbarEnabled(false,false)end)bindCamera()
-- Mimic roblox menu when opened and closed
guiService.MenuClosed:Connect(function()
	if VRService.VREnabled then
		return
	end
	menuOpen = false
	if not IconController.controllerModeEnabled then
		IconController.setTopbarEnabled(IconController.topbarEnabled, false)
	end
end)
guiService.MenuOpened:Connect(function()
	if VRService.VREnabled then
		return
	end
	menuOpen = true
	IconController.setTopbarEnabled(false, false)
end)

bindCamera()
