Camera Issues Please Help

I want the player’s Camera to view this specific location in the workspace. The error says “Attempted to call a table value at line 4” Here is the code:

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera

camera.CFrame = CFrame.lookAt(Vector3(487.265, 5.907, -298.671), Vector3(-1.169, -90.565, 0))

you should replace (every) Vector3 with and see what happens

there is no error but the camera isn’t working?

ok, so you may have to set the cameratype to scriptable

camera.CameraType = Enum.CameraType.Scriptable

if you want to move the camera you may have to set it’s cframe again

maybe look at runservice to repeat moving the camera

how do i change its orientation?

with the cframe, cframe is position and orientation i believe

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.