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 change the camera position?

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

✓ Accepted answer

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!

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