I have done a few changes, but it keeps repeat the code over and over again without stopping, I have changed the code to stop, but it does not stop, and there is no Output, here is the script;
repeat wait() until game.Players.LocalPlayer
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
repeat plr.CameraMode = 0 wait(.1) plr.CameraMode = 1 wait(.1) if plr.CameraMode == 1 then break end until plr.CameraMode == 1

1 comment
I believe that the 'break' function is only breaking the 'if' statement, not the repeat loop.