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

Trying to make camera focus based on part rotation?

Asked by
Seenit 80
10 years ago
local target = workspace.Part
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
camera.CoordinateFrame = CFrame.new(target.Position)
camera.Focus=CFrame.new(targer.Position)

Please tell me why this doesn't work and how I can fix it? I want to camera to focus the same direction the front face of the brick is.

0
Also, ignore the spelling error... Even correct it doesn't work... Seenit 80 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Well one, you spelled target wrong in your code you spelled it "targer".

Ad

Answer this question