MouseBehaviour "LockCenter" doesn't work in Local Server testing

Setting UIS.MouseBehaviour to LockCenter and launching a studio playtest does not lock the mouse to the center of the screen and instead gives default behaviour (reading UIS.MouseBehaviour shows it is set to Default, even when setting MouseBehaviour every time RenderStepped is fired).

This issue only seems to persist when the local server window is resized.

Video taken in Local Server

Video taken in Studio Test (this behaviour also is present in live servers)

Beta Features enabled:

  • Upgrade Shorelines
  • Team Create Connection Indicator Rework
  • New Character Controller
  • Live Animation Creator
  • Intuitive Debugger
  • CSG V3
  • Advanced Explorer Filtering

Expected behavior

The mouse should lock to the center of the screen.

2 Likes

Thanks for the report! We’ve filed a ticket in our internal database.

2 Likes

Is this still an issue for you? I tried to reproduce it, but found that the mouse was correctly locked to the center of the screen.

I tried in 1-player Local Server mode, with two different tests:

  1. Open an empty baseplate and zooming in until it activates first person mode.
  2. This place file, which sets MouseBehavior every frame like you mentioned:
    LockCenterInLocalServerTest.rbxl (41,7,KB)
1 Like

This issue only happens for me when a client window is resized (for me, player 1 and 2’s windows are half and half on my monitor and this is the default size of the windows when I launch a local server).

2 Likes

This is still an issue. For me it’s only happening in one of 2 places in my experience. I have the same window setup as Tom_atoes. Launching a playtest, resizing both client windows to normal and restarting makes it work again…

1 Like