You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UserInputService.GetMouseLocation() return type is set to Vector2 instead of Vector2 | undefined.
In Roblox's API, it states:
"If the location of the mouse pointer is offscreen or the players device does not have a mouse, the value returned will be undetermined instead of Vector2"
Looks like this API will always return a Vector2 value. In the event that the user doesn't have a mouse or the mouse is off screen, the API will return something like Vector2(inf, inf), but not nil/undefined.
UserInputService.GetMouseLocation()
return type is set to Vector2 instead of Vector2 | undefined.In Roblox's API, it states:
"If the location of the mouse pointer is offscreen or the players device does not have a mouse, the value returned will be undetermined instead of Vector2"
https://developer.roblox.com/en-us/api-reference/function/UserInputService/GetMouseLocation
The text was updated successfully, but these errors were encountered: