So, i have been looking at the api references and i was looking at players. I stumbled across CameraMaxDistance so i copied and pasted it and got this error:
That’s because you’re trying to use LocalPlayer in a server script. LocalPlayer can only be used in client scripts, and it references the player that the script is running for. Players.LocalPlayer is nil on the server because there is no local player. You’d need to get the player some other way,