How would I find CurrentCamera from workspace and clone it?

Hello, I’m trying to get the value of “CurrentCamera” from Workspace properties and getting the camera. Then cloning it. But it doesn’t seem to be working.

This script might make no sense, but this is what i tried so far.

currentCameraName = workspace.CurrentCamera
currentCamera = workspace:FindFirstChild(currentCameraName)
if currentCamera then
     currentCamera:Clone()
     print("Success!")
end

workspace.CurrentCamera is a reference to the camera instance, not its name. So you are overcomplicating this. And if you want to clone it and actually keep the clone in the game, you should store the clone into a variable and set its parent.

Example:

local camera = workspace.CurrentCamera
local newCamera = camera:Clone()
newCamera.Parent = workspace
4 Likes