When servers in my game get busy, I’ve found that the clients stop updating certain property changes for seemingly no reason. Observe below:
https://i.gyazo.com/e67328b11d2e860ba822b4bb32c495c1.gif
When I walk through the door, the server detects the touched event and uses FireAllClients on a RemoteEvent, passing along data specifying which door needs to be changed, and how it needs to be changed. The server sets the CanCollide property of the door itself. The clients then proceed to alter the color and material of the panel you see to the right of the door, toggle which PointLights in the panel are enabled, and set the transparency of the door. However, as you can see from the gif, the client fails to set the transparency of the door and change the color / material of the panel.
As evidenced above, all three actions are being successfully called by the client as I can always see the PointLights changing, and this only occurs when there’s a flurry of activity nearby. Sometimes it works perfectly and changes the appearances instantly, sometimes it takes several seconds for the rendering changes to go through, and sometimes it just doesn’t render the changes at all.
Originally, I had it set up so the server did everything on its own. It detected the Touched events, then set the appearance of the door and panel. I figured that having the server doing all this was the issue and made the client do it instead, but it ended up making no difference.
I’m at a loss for what to do now, as it seems I can’t reliably change the appearance of these doors. This has been occurring for as long as I can remember, I’m only just reporting it now because I’ve exhausted the only solution to this issue I thought possible.
In the game I linked, this issue is very prevalent on the doors on all the homes. (The gif above was recorded in a prototype jail and isn’t in the linked game yet.)
EDIT: For reference, here’s what the doors above SHOULD be doing.
https://i.gyazo.com/c009537fbc00f5c84fbb567aaffc2a4d.gif