hi, so basically when the player joins, I want the camera to be set to the specified camPart
. The code is simple, yet it doesn’t work.
it doesn’t go past the print("got locals")
and I don’t know why.
local plr = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local part = workspace:WaitForChild("camPart")
print('got locals')
if camera.CameraType == Enum.CameraType.Custom then
print('detected that its custom')
repeat
camera.CameraType = Enum.CameraType.Scriptable
print('set to scriptable')
until camera.CameraType == Enum.CameraType.Scriptable
print('cam type is scriptable')
camera.CameraSubject = part
camera.CFrame = part
print('set cam to part')
end
if someone could help me figure out this problem, I would really appreciate it!