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

My Camera CFrame isn't changing?

When I set my camera's CFrame to a part, it's not changing and it just gets fixed on the humanoid that it was on before.

wait(5)
local currentCam = game.Workspace.CurrentCamera
local camObj = game.Workspace.Camera
currentCam.CameraType = Enum.CameraType.Scriptable
currentCam.CameraSubject = camObj
currentCam.CFrame = camObj.CFrame
currentCam.Focus = camObj.CFrame

2 answers

✓ Accepted answer

I think its because of the "CamObj" game.Workspace.Camera already exists and its the "CurrentCamera" not the Part, You need to rename it ( the part ) to a different name

if This helped you Please accept it as an answer

Solved it myself: My part was named Camera so I was indexing the actual camera object instead of the part itself.

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