How can I invert the player's mouse movement?

I’m trying to make an ability where the player’s senses get reversed/inverted. So up becomes down, forwards becomes backwards, etc. I already have the camera and player movement done, but I’m having trouble doing this with the player’s mouse movement.

As far as I know, you can’t manipulate the player’s mouse position with a script. So I was wondering if it was possible to do it at all? Please correct me if I’m wrong, but I couldn’t find another post talking about something like this.

Thanks.

Your best bet would probably be to switch to first person mode since that’s when the mouse will be forced to be centered, and the center of the screen when inverted is well… the center. It isn’t quite possible to manipulate a player’s cursor position since it would pose security risks.

It’s not possible for security.

You could create a fake cursor GUI and inverse the movements if you just want to make it an effect but besides that there’s nothing you can do (you obviously cannot create a functioning fake cursor).

Camera wise, you can just negative the number so it’s the complete opposite. If you’re meaning cursor- that’s not possible.

I dont think you can directly invert the mouse but you can definitely simulate it by inverting the X and Y coords on user input, and doing custom raycasts to interact with the 3D world, from the inverted position.

ClickDetectors might be a little funky with this but you shouldn’t be using those anyway if you’re messing with the mouse like this.

i havent tried this but maybe make the normal mouse invisible and make a fake one with the same icon at the same place, and then make the fake mouse movement be inverted to the normal mouse movement