this is just a question and i wanna know because i might do something that when you click something that will change the cameraoffset
It cannot be done on the server side. Most of the camera can only be changed in a localscript. Some property may still be changed on the server though. But I would suggest you always change properties of the camera in a server scirpt.
You can read more here: https://developer.roblox.com/api-reference/class/Camera