Game Invite Prompt doesn't unlock player's mouse

When clicking “invite friends” in the Roblox menu on a game with a locked player mouse, the mouse remains locked in the center, making it impossible to click any of the options & share the game.

Roblox unlocks the mouse for you to use the menu. This behavior should continue for all Roblox UI prompts, especially ones where it is impossible to determine if it’s currently open or not (such as this).

This issue happens in every single FPS game on the site, as far as I can tell.

Example (RIVALS):

Example code to lock the mouse to the center of the screen:

local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

RunService.Heartbeat:Connect(function()
	UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end)
3 Likes

good catch! are there any other cases when the locking should be used?

@Repotted we will investigate soon, given this thread has not been looked at in a while we would like to know if the issue is still reproducible/relevant by you?

1 Like

Yeah, still happens! Should be possible to reproduce by clicking “Invite Connections” in any FPS game (or while first-person in any game).

In games with a hidden mouse (commonly done for FPS games to not block the reticle), it seems like the mouse also remains hidden in addition to being unmovable. The expected behavior is that the mouse’s visibility would be overridden to be visible, similar to how it is in the Roblox esc menu, so that you can always see where it is (since it’s impossible for a developer to know if the prompt is visible or not, to my knowledge).

1 Like

I’ve noticed the “Modal” property for gui is broken right now, which may be a reason behind this issue