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

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

Asked by
trecept 367 Moderation Voter
5 years ago

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

Log in to vote
1
Answered by 5 years ago

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.

Ad

Answer this question