F to unlock mouse script not working

I remember solving this some time ago. What you have to do is make the .Modal BoolValue turn to true. This will unlock the mouse. Setting it to false will lock the cursor again.


For more context;

3 Likes