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

How do I make it so that the player can move the camera?

I have the camera's coordinateframe set to a part's position. I want the player to be able to move the camera, zoom in and zoom out, and like move it as you could normally. How can I do this? I've tried to do many things but it doesn't work. Here is the codeblock

Camera.CameraSubject = CameraPart
Camera.CoordinateFrame = CameraPart.CFrame

This is all that changes the property of the camera. When I do this, the camera moves to the part, but I can't move it. How can I fix this?

1 answer

✓ Accepted answer

I just tested this:

Camera.CameraSubject = CameraPart
Camera.Focus = CameraPart.CFrame

Should work

2 comments

0

Ok, so the camerapart is following the character's humanoid root part right. If I do this the player can move the mouse but the player doesn't move properly. How can I fix this?

0

Why do you ask this? Just set the camera type to custom

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