What should I change to make my Camera CFrame loop until spawned?
I have a Main Menu Gui that once spawned cycles through 3 different camera parts. Yet it only cycles through once and I cannot figure out the correct way of coding the loop.
03 | local camera = game.Workspace.CurrentCamera |
04 | local player = game.Players.LocalPlayer |
09 | repeat wait() until player.Character |
10 | camera.CameraType = "Scriptable" |
11 | camera.CFrame = game.Workspace.CAM 1. CFrame |
13 | camera.CFrame = game.Workspace.CAM 2. CFrame |
15 | camera.CFrame = game.Workspace.CAM 3. CFrame |
Also note I want this loop to break once spawned. I think im supposed to use the, "for I, v in pairs" loop but I don't know the correct way of going about this.
Thanks
~GoodkidMad