Log in to vote

how do I change the camera position?

Asked by 1 month ago

hi. so i'm trying to make a game where if you click a button you can change the cameras position to a new one can I get some help on this? this is the current script i have but doesnt work

camera = workspace.Camera
camera.Position = workspace.Camerapart
camera.CameraType = Scriptable

can i pls get some help on this, anything that works will be appreciated

1 answer

Log in to vote
Answered by
2_MMZ 265 Moderation Voter
1 month ago
Edited 1 month ago

You need to identify the Camera with Local such as:

local Camera = game.Workspace.Camera

You must also use CFrame for your camera.

Camera.CFrame = game.Workspace.Camerapart.CFrame

Then, for the CameraType you need to use Enum

Camera.CameraType = Enum.CameraType.Scriptable

Hope this helped!


Answer this question