I’m creating a global server-wide player boss health bar for a little hub I use to create whatever wacky ideas I have. The healthbar is mostly working fine for all the clients, hiding and showing when a certain player who’s allowed to have it joins or leaves, etc… but for some reason…
Whenever the player with the boss bar gets damaged, the other clients do correctly change their GUI’s sizes, but my RemoteEvent is for some reason firing multiple times on other people’s clients, giving the same value “healthPercent” (the third variable) had when the RemoteEvent first fired…?
The event inside the healthbar’s ServerScript variant
The event being acknowledged (hopefully) properly in the healthbar’s LocalScript variant (updateHealthBar is commented because I thought that was the issue… somehow.)
The client trying to set the “healthPercent” value to what the server currently has it, but failing
I couldn’t really do much to fix this given my scripting skills is not really that great, so if the answer is quite obvious, please feel free to call me out for it. Any help is greatly appreciated.