Why is the position of the camera not changing?

I need to change the position of a camera this is for a viewport camera

camera.CFrame.new(999,999,999)

whole of script

local camera = Instance.new("Camera")
camera.Parent = script.Parent.ViewportFrame
local b = game.Workspace.Map:Clone()
b.Parent = script.Parent.ViewportFrame
camera.CFrame.new(999,999,999)

Have you tried changing the CameraType to scriptable?

2 Likes

You should be doing something like this:

camera.CFrame = CFrame.new(999,999,999)

Your current code is combining the 2 sides of this together and that’s why it’s not working.

1 Like

Oh I forgot to do that thx (30 char)

2 Likes