This is in a local module I have the Current Camera as a var like

local cam = game.Workspace.CurrentCamera;

and I am trying to change the camera to scriptable so I can move it but its not changing to scriptable or giving an error so idk what I am doing wrong everything else works it changes the focus but doesn't move the CoordinateFrame heres the code:

function clientMod:SendClientToMain()
	cam.CameraType = Enum.CameraType.Scriptable;
	mainUI.mainFrame.Visible = true;
	cam.CoordinateFrame = camPos.menuCam.CFrame;
	cam.Focus = camFocus.menuCamFocus.CFrame;
	selectRandomSong();
end

PLS HELP

6 comments

0

CoordinateFrame is deprecated, use CFrame. And add calls to print. If the code is printing then it's in fact running

0

It runs. it selects a random song it forsure runs and i tried CFrame.

0

And i know it has something to do with the camera type not changing because its not changing lol

0

Do you call the :SendClientToMain function?

0

yep

0

try repeat wait() cam.CameraType = CameraTypeHere until cam.CameraType == CameraTypeHere