Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to temporary disable mouse camera movement?

Asked by
VAnkata20 135
1 year ago
Edited 1 year ago

I made a focus script but the camera has some kind of problem when I move the mouse.

Video:https://vimeo.com/721938495

I am looking for a way to disable the mouse while the shift button is pressed but cant find seem to find a way

0
maybe make the camera type scriptable until they let go of shift? cmgtotalyawesome 1418 — 1y
0
Scriptable doesn't follow the player which is needed for the focus VAnkata20 135 — 1y

1 answer

Log in to vote
0
Answered by
VAnkata20 135
1 year ago

Found it. the function i was searching for was UserInputService.Mouse.MouseBehavior = Enum.MouseBehavior.LockCurrentPosition

Ad

Answer this question