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

How can I make a 3rd person camera?

1 answer

Well, first you'll want to go into a LocalScript in StarterGui and start out with this:

wait(.01)

while wait() do
game.Workspace.CurrentCamera.CameraType="Scriptable"
end

This will set the camera off of the character's Humanoid and allow you to code about. For this method, I suggest playing around with CoordinateFrame. I also suggest, to make it easier, setting to a part's CFrame. Such as character's Torso or Head.

The second method is simply resetting the CameraSubject. By default it's the character's humanoid.

Here's the way to do that:

wait(.01)

while wait() do
game.Workspace.CurrentCamera.CameraSubject=part --Set this to the part to set the camera to.
end

If I helped, hit that accept!

Also, if I missed something, just comment. :D

3 comments

0

How could i make it so that the mouse stays in the middle of the screen?

0

Force the camera into first person mode, then mess with the camera's CFrame again to account for the zoom that first person brings.

0

He may want an FPS camera.

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