When running the debugger, the mouse position the game registers is consistently offset from the actual position of the mouse. The problem only occurs when both ‘Embed Game on Next Play’ and Make Game Workspace Floating on Next Play’ are checked. The actual code shouldn’t be at fault as even the Sprite2D running the script included below is offset from the mouse.
Nope, everything is exactly the same. Besides, every single object acts as though the mouse’s position is at the position indicated by the Sprite2D, so the problem isn’t in the code of the Sprite2D.
Sorry, I can’t recreate the issue and I don’t see why it would happen.
Maybe try a newer or older version of the engine to see if this persists.
If that doesn’t help, you can try reporting an official bug on GitHub.