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
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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Oh.. Thenk You DanzLua!