I got a PM earlier today about my game being broken. I went into the game and stumbled upon what may have been the weirdest bug I’ve ever encountered.
When I spawned, the server looked at my equipment, and attached it to my character. No problem. But when my local code wanted to access the same equipment data (stored in ReplicatedStorage), it got an error about these items not existing.
I came into the server and did the following: I ran code that copied all of replicatedstorage, deleted it, and repasted it back into replicatedstorage. I then killed every player to allow their local code to start over. The local code now worked, however none of my remotefunctions would fire. We couldn’t deal damage (send hit requests) or sheath (skill request). We could swing, animations were still replicating, just not the damage.
I have absolutely no idea how this happened and I had to shutdown my server because it was fubar.
Here’s some stuff about my game that might help with the issue:
-FilteringEnabled is turned ON.
-Streaming is OFF.
-The game assets are loaded via insertservice. Nobody spawns until the assets are loaded. The server did load all assets.
-When I found the bug, I checked that the server had all existing assets in replicatedstorage. The client did not get replicatedstorage sent over.
-Do remotefunctions have a limit? If not, no idea why they broke.
Hopefully this never happens again or the bug can be found! First time it’s ever happened today.
Here’s the sub-place of the game it happened at: