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

Why won't my camera get moved to this part when I play the game?

local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = game.Workspace.TestingPart

The camera just spawns on the floor...

2 comments

0

I have this on a local script, by the way.

1

camera.CFrame.

1 answer

✓ Accepted answer

I rarily use camera.CameraSubject, and when I do I usually leave the camera as custom (for spectating functions)

The camera has a "CFrame" property (as DeceptiveCaster said). I'm pretty sure you know what CFrame is, but just in case, its a way to position with orientation (smallest breakdown I could think of)

you could try

camera.CFrame = workspace.TestingPart.CFrame - Vector3.new(3, -3, 0) -- subtract a vector 3 to *attempt* to get it looking at the part.

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