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

how do I change the camera position?

Asked by 3 years 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
wait(1)
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
2
Answered by
2_MMZ 1059 Moderation Voter
3 years ago
Edited 3 years 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!

Ad

Answer this question