I am warming back up into scripting and I am just confused on why changing the cameratype only works if I wait 1 second, I feel like thats a bad idea/habit to get into and is there a real solution? without the wait it will not change the cameratype or cframe.
local camera = game.Workspace.CurrentCamera
local cameraRigs = game.Workspace:WaitForChild("cameras")
local cameraPart = cameraRigs:WaitForChild("cameraPos")
wait(1)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = cameraPart.CFrame
wait(1)
print(camera.CameraType.Name)
print(camera.CFrame)