Camera Scripting working in studio but not in real game

everything works perfectly in Studio, but everything breaks in the actual game.
A warning is issued in the actual game’s output, something along the lines of
“ActiveCameraController did not select a module”

repeat wait() until workspace.CurrentCamera ~= nil
local Camera = workspace.CurrentCamera

repeat wait()
	Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
repeat wait()
	Camera.CFrame = workspace.MyCamerasCFramelol
until 	Camera.CFrame == workspace.MyCamerasCFramelol

Is this located inside of a local script or a server script?

local script, duh
it works perfectly in studio anyways

I see your issue. Right here:

I can’t tell if the MyCamerasCFramelol is the coverup for a part or the part.CFrame. If it’s the first option then you need to add a .CFrame to your part.

yes, it is a coverup
the problem most likely comes from the start because camera modules might load faster in studio (i think?)

Are you firing the camera event as soon as the server starts?

yeah

oh, THAT might be the issue, you say?

Probably. Try adding a 1 - 2 second wait before firing the event maybe?

yep, just did
thanks for the help

1 Like