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

Free Mouse in First-Person?

Asked by 5 years ago
Edited 5 years ago

So I am trying to free the clients mouse in first-person when they open their InventoryGUI Menu. Is there anyway to unlock the clients mouse while keeping them in first-person when they open the InventoryGUI?

0
Try changing cameratypes or something related to the camera St_vnC 330 — 5y

2 answers

Log in to vote
3
Answered by 5 years ago
Edited 5 years ago

You can use UserInputTypes MouseBehavior which can be set to

Enum.MouseBehavior.LockCenter

Enum.MouseBehavior.Default
Ad
Log in to vote
0
Answered by
compUcomp 417 Moderation Voter
5 years ago

A few possible solutions: 1) Make the camera scriptable when the gui is opened so the mouse isn't clobbered by the default scripts. You can change it back after the gui is closed. 2) Zoom them out just a tiny bit by manipulating maximum and minimum camera zoom. 3) [Not advised] Go into the default camera scripts and make it yield control on an event

Answer this question