Camera CFrame position doesn't change but angle does

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


did you make the cameratype scriptable?


camera.CameraType = Enum.CameraType.Scriptable

yes, I did, it didn’t change anything.

is this a local script or a regular script?

(i would assume local but i just want to make sure)

edit: can you send the script after the cameratype? and maybe the console (after clicking the button)

Local of course, server scripts don’t even work with this kind of code I think…

EDIT: oh my god i had to actively make it scriptable IN THE SCRIPT :sob: thank you lol

1 Like

yeah lol, no worries, just make sure if you want the camera to go back to normal use:

camera.CameraType = Enum.CameraType.Custom --normal

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.