I made a script made to change the camera go to a specific location in my game, but only the angle changes and the position is not affected. The script is very simple.
local guiButton = script.Parent
local testChamberCam = workspace:WaitForChild("testchambercam")
-- wdh?!?! pos doesnt change aah!!!
local function onButtonClick()
local camera = game.Workspace.CurrentCamera
camera.CFrame = testChamberCam.CFrame
end
guiButton.MouseButton1Click:Connect(onButtonClick)