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

How does one change the mouse sensitivity?

Asked by
coo1o 227 Moderation Voter
9 years ago

Hello there.

In some Roblox shooter games, I have noticed that, even if you're in first person, you have the mouse sensitivity of third person. Take a look at Tactical Assault for example, you actually have a setting to change the mouse sensitivity.

I'm not requesting a mouse sensitivity script, I just need a step-by-step answer so that I can make one myself.

Thanks in advance,

~coo1o

1 answer

Log in to vote
1
Answered by 9 years ago

Here's YouTubes' Mouse Sensitivity script: Mouse Sensitivity Script

Here's my Gui version of YouTubes' script: Mouse Sensitivity Gui

This is how the Mouse Sensitivity scripts basically work:

1) The script gets the offset between the cframe of the camera when you moved the mouse and the cframe of the camera before you moved the mouse

2) The script takes that offset and gets the X and Y rotations of the cframe

3) The script rotates the camera by the X and the Y rotations multiplied by the Sensitivity (so if X and Y are 1 and Sensitivity is 0.5, the camera will be rotated by (0.5, 0.5))

Hope this helped!

0
Thanks! coo1o 227 — 9y
Ad

Answer this question