Anyone know why this script doesn’t work? I’m kind of a newbie to camera related stuff so I’d appreciate any help. (Yes it’s in a localscript)
local camera = workspace.CurrentCamera
repeat wait() camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
if #game.Players:GetChildren() == 1 then
camera.CFrame = workspace.BlueCamera.CFrame
else
camera.CFrame = workspace.RedCamera.CFrame
end
As I said, yes it’s a local script. No there are no errors. Also I forgot to say that the script works sometimes, but it breaks a lot. I would say that there’s about like a 60% chance of it working for some reason.