help, the code below doesn't work. the click detector is in the clickpart and the code below is in a local script
script.Parent.Parent.ClickPart.ClickDetector.MouseClick:Connect(function()
local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = script.Parent.cam.CFrame
end)
