Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why is this camera manipulation not working??

local script:

local newcam = workspace.newCamera.Camera
local cam = workspace.CurrentCamera
repeat
cam.CameraType = Enum.CameraType.Scriptable
until
cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = newcam.CFrame

1 answer

✓ Accepted answer

Without waiting for the CurrentCamera to load, we won't be able to set its CameraType

repeat wait() until workspace.CurrentCamera
wait()

local newcam = workspace.newCamera.Camera
local cam = workspace.CurrentCamera
repeat
cam.CameraType = Enum.CameraType.Scriptable
until
cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = newcam.CFrame

1 comment

0

Oh.. Thenk You DanzLua!

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