Camera Manipulation question

Hey, is there any way to set a camera to the player’s camera? Consider the following:
image
How can I set the default camera to the one highlighted above?

2 Likes

First you have to set the camera’s cameratype to scriptable

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable.

Now you can change the main camera’s CFrame to the one in the Cam.

workspace.CurrentCamera.CFrame = workspace.Cam.Camera.CFrame

You need to do something like this:

local cam = workspace.CurrentCamera

cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = workspace.Cam.CFrame

It basically allows us to position the camera’s cframe at the parts cframe. No need to use other camera objects.

any way to lock the CFrame to that part?

Hey guys, im sorry if this breaks any rules, but I have a question.
I just got promoted to member, but I’m still not able to make any topics.
Is posting topics only for higher ranks or is this a bug?

Thank you for your time

Ps: If the topic maker wants me to delete this question, just say it, I’ll delete it then

Oh you meant that. For that you need to change the camerasubject to the part.

workspace.CurrentCamera.CameraSubject = workspace.Cam

gotcha, thanks. sorry, not really experienced with camera manipulation, haha

1 Like

Hi, I see you marked something as the solution, my question is: how to do this?