If you didn't know, parenting part to the camera make that the part won't replicate on client but will work fine on server. Here's my problem:
In my tycoon game there are a LOT of moving parts, that means that there are a lot of physics calcul being sent to the client making the server laggy. To fix it I made it so the script spawns the part then parent it to the camera so it wouldn't send data to the client and also FireAllClient() so that player can actually see a part moving (local part which the physics are run on the local computer). The game work fine but then when I collect money, the server part (those parented to the camera) get frozen. They still spawn but get frozen around 0.1s later. The local parts (those that I see moving) still work fine. I don't know why this happens. To make sure it was because of the camera (the trick to optimize as said above) I parented the server part on a normal folder in server and it worked fine. So the problem is really coming from that. If anyone can help it would be appreciated. Thank you!🙏