Can you not check a Humanoids HP on the client (server NPC)

I have a server sided NPC. And I have a gun that fires bullets on the client. And then deals damage on server. But it checks the HP on the client and if 0 it will show some UI like hitmarker, +x points etc…

But the client check doesn’t seem to run. So is client not able to return read only server information in this case?

You shouldn’t do that on the client either way; you can run into a situation where the gun shows hitmarkers on the client, but the server says it’s a miss

just check it on the server then use a remote for the marker if the hp is below 0 why do this on the client anyway

1 Like

In my case its not important for exploits for this example.

So I should send a server → client back when the target is dead and then deal with the UI?

You will need to show code to get help, how are you doing this check? Have you tried adding a breakpoint or a print statement to make sure it’s running?

Yea there is a print statement. Like I send a client to server that sends the Humanoid as an argument. And deal damage on server.

The print is right before the client - server event fires.