Is it necessary to put a task.wait() here?

I’m making a camera system
Should I do this?

camera.CameraType = Enum.CameraType.Scriptable
task.wait()
camera.CameraSubject = game.Workspace.Cameras.Cam01.CamPart
task.wait()
camera.CFrame = game.Workspace.Cameras.Cam01.CamPart.CFrame

Or is it okay for me to do this?

camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = game.Workspace.Cameras.Cam01.CamPart
camera.CFrame = game.Workspace.Cameras.Cam01.CamPart.CFrame

Both of them worked for me, but idk if it will work every time or if it will work with lag.

Don’t use task.wait() in this instance; It should only used for situations where a delay is needed (such as a while loop)

5 Likes