How can I create a script for this current camera to work?
The Issue is that these code which is in “ServerScriptService” doesn’t want to work.
The code is
if game.Players.PlayerAdded then
local CurrentCam = workspace.CurrentCamera
local StartCam = workspace.StarterCamera
function ChangeMode()
repeat
wait()
CurrentCam.CameraType = Enum.CameraType.Scriptable
until
CurrentCam.CameraType ~= Enum.CameraType.Scriptable
end
function ChangeCamera()
repeat
wait()
CurrentCam.CameraSubject = StartCam
until CurrentCam.CameraSubject == StartCam
end
ChangeMode()
ChangeCamera()
end
I have already tried printing if the code works or not and apparently it gave me an answer that it was working fine but when I manually checked the property of the Camera in Workspace it did not change.