Since you can read the mouse x and y but not change them, what method can you to change them?
✓ ANSWER ACCEPTED
Set mouse position on screen?
1 answer
✓ Accepted answer
There is no way to actually set the position of the players mouse.
The only thing I can think of that you may or may not actually mean is:
1)Setting mouse as Locked in the center
2)if you actually want to check the mouse position there are ways to do this:
a)Mouse.Target:
if mouse.Target = workspace.Part then
end
b)Mouse.Hit:
Mouse.Hit.p
Mouse.Hit.X
Mouse.Hit.X.p
Mouse.Hit.Y
Mouse.Hit.Y.p
Mouse.Hit.Z
Mouse.Hit.Z.p
2 comments
0
I just needed a method to make my guns have recoil, I am not really sure of anymore ways I can achieve this other than messing with the mouse position.
0
thats to do with camera, not mouse
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
You cannot do this.
It would be very hacky if this was possible ie a script to make a player buy a item ingame. So this will never be possible to code ingame.
How do you guys think some games like Phantom Forces have recoil on there weapons? I only needed this for gun recoil.
camera
Ok thanks.