local target = workspace.CameraPart
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
		
camera.CFrame = CFrame.new(0, 16, 14.75)*CFrame.Angles(math.rad(-100), 0, 0)

whenever I use this inside of Roblox Studio it works the way its supposed to, but when I use it outside of studio in the actual game it doesn't do anything and it just returns to the default camera.

UPDATE: So it turns out I am incredibly stupid and I didn't realize that CameraPart was both cancolide false and unanchored, so it would just fall out of the map and despawn.

1 comment

0

Try setting it to scriptable in the properties window.