function Cam.CameraAttach(camera, attachPart)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = camera.CFrame:Lerp(attachPart.CFrame, 0.2)
end
it keeps giving me the output attempt to index nil with 'CFrame’, I dont know if I did it right but based on what i’ve searched and a script I have its correct
the camera is the workspace cam and attach part is where it should go to
also, this code is in a module script since I will be needing it on multiple scripts
Where is this script? If partA is nil you probably want to check if its actually there and that workspace.Zone1.Cam is a part in workspace, otherwise use WaitForChild