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

Am I changing the CameraType wrong there is no error?

Asked by 5 years ago
Edited 5 years ago

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

0
CoordinateFrame is deprecated, use CFrame. And add calls to print. If the code is printing then it's in fact running User#24403 69 — 5y
0
It runs. it selects a random song it forsure runs and i tried CFrame. brennaniamcool666 0 — 5y
0
And i know it has something to do with the camera type not changing because its not changing lol brennaniamcool666 0 — 5y
0
Do you call the :SendClientToMain function? User#24403 69 — 5y
View all comments (2 more)
0
yep brennaniamcool666 0 — 5y
0
try repeat wait() cam.CameraType = CameraTypeHere until cam.CameraType == CameraTypeHere the8bitdude11 358 — 5y

Answer this question