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

Camera locking on a Part?

Asked by
Exsius 162
10 years ago

Like I know how to select different camera types on the character but what about if I wanted to use a part that the camera would lock on?

1 answer

Log in to vote
1
Answered by 10 years ago

Change the CameraSubject property of the camera.

local Player = game.Players.LocalPlayer
local Cam = game.Workspace.CurrentCamera

Cam.CameraSubject = Player.Character.Torso

--Or if it were just a random brick in the Workspace

Cam.CameraSubject = game.Workspace.Part

Alternatively, you could use Focus.

0
Alright Thanks! Exsius 162 — 10y
Ad

Answer this question