I am working on a Force System in my Roblox game and using FireAllClients to replicate the powers to all players. However, after using it a few times, FireAllClients suddenly stops working and only replicates to the local player instead of all clients.
To help diagnose the issue, I am attaching the game file below along with some screenshots of the relevant code. Please let me know if you need any additional information.
I doubt it’s a bug in the code, especially since it was working perfectly fine until a few days ago. But assuming it is a bug in my code, what kind of issue could cause FireAllClients to suddenly stop replicating to all clients and only replicate to the local player? (The LocalScript that handles OnClientEvent is in StarterPlayerScripts and is never deleted, and the code I wrote in the modules doesn’t trigger any errors).
A quick way to test if FireAllClients is working is by starting multiple clients in studio and placing a breakpoint in the Connect callback on any of the other clients to see if the callback is triggered.
Let us know if you are still running into the issue!