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

How could I manipulate the camera and force it into 3rd person?

Asked by 5 years ago

I'm currently trying to force my character into 3rd person without letting it zoom in / out. Anyone got an idea?

0
The question is, "Do you have one?" Zafirua 1348 — 5y
0
Try the CameraMaxZoomDistance and CameraMinZoomDistance properties of the Player class. http://wiki.roblox.com/index.php?title=API:Class/Player M39a9am3R 3210 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Go into Play Solo mode and look for CameraScript under Players > (YOUR NAME) > PlayerScripts > CameraScript then end Solo Mode and paste the script into game.StarterPlayer.StarterPlayerScripts

Next open RootCamera which is parented to CameraScript, and change: line 209 from this.ShiftLock = false to this.ShiftLock = true and line 275 from return ShiftLockController:IsShiftLocked() to return true

To restrict zooming in and out you can change the numbers of CameraMinZoomDistance and CameraMaxZoomDistance in game.StarterPlayer to the same number

And lastly, you may want to disable the mouse icon, which you can do by pasting game:GetService("UserInputService").MouseIconEnabled = false into a LocalScript in StarterPack or StarterGui, or just putting it into the CameraScript you pasted into PlayerScripts earlier.

Ad

Answer this question