How would I be able to make it so humanoid health doesn’t replicate to other clients?
Like if I were to damage a humanoid on the sever make it so the client other than the one I damaged sees that it was damaged.
This might be a stupid question but I just want to know if its possible.
No, what I’m trying to do is make it so the health doesn’t replicate to other clients but only your own. That just makes it where you can’t see it when it’s damaged, it still replicates.
Why exactly is it a problem that the health replicates even if the players can’t see it?
Do you want the health to be independent to other players rather than global?
I understand your problem now.
The only solution to this would be to simply not use that property.
You would have to track and deduct health either inside of a ServerScript or somewhere like ServerStorage where the client can’t see that information.
You can then send the health to the player with a remote, and edit the property on the client using a LocalScript so the health displays only for the player themselves.
-
You could create a new Humanoid instance and parent it to ServerStorage, if you need the regenerate health script, you can modify it to work just for the humanoid, and clone it into the humanoid.
Weapons/things that damage the player, you edit to instead damage the corresponding Humanoid inside ServerStorage, you could easily track it by naming this Humanoid the same as the player it belongs to.