Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I change the camera to move up during shift lock?

Whenever I go into shift lock in my game the camera isn't low enough and was hoping there was a way to have the camera be a little bit more up than usual when in mouse lock? I know about stuff like CameraMode but I don't know where to start with changing the camera's location during shift lock.

1 answer

✓ Accepted answer

In your script where you are making the camera go up insert the following code:

player.Character.Humanoid.CameraOffset = Vector3.new(0, 3, 0) --change the 3 to change how far up the camera gets changed to

In your script where you are making the camera go back to normal insert the following code:

player.Character.Humanoid.CameraOffset = Vector3.new(0, 0, 0)

Please note that the variable "player" must be defined for this to work.

This discussion is preserved as it was. New answers, comments, and votes are closed.