Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

I just tested this:

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

Should work

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? 88BlackRose 5 — 6y
0
Why do you ask this? Just set the camera type to custom Wafflecow321 457 — 6y
Ad

Answer this question