Get Property Changed Signal("Value") is not working?

This is very frustrating and I have no idea whats causing this.
image
this is my code. The code prints(“HI”) but wont print change when the blood value changes (blood is a numbervalue inside of the player)

The blood value is being changed on the server and its also being checked on the server. The event wont fire at all and yes the blood value is actually changing. I have absolutely no clue why this wont work. All help is greatly appreciated.

Edit: this is a script inside of startercharacterscripts as well

1 Like

use .changed instead!!!

1 Like

I tried this after looking at previous posts with the same issue and I still have the same problem occuring.

Weirdly enough whenever the player spawns in it will randomly decide whether it wants to work or not. When I run a play test alone it works 100% of the time but with a test server with 2 players it almost always breaks.

Can I see the blood variable?
It might not be getting the value depending on how fast you load in

1 Like

local blood = plr:WaitForChild(“blood”)

I guess you can debug it more and just do a loop to see if the value actually changes in the LocalScript too, for example:

while task.wait() do
	print(blood.Value)
end
2 Likes

I found out the issue. Basically I have data save and one of the play test players has its blood saved at 0 and since it was already 0 it was not firing the event. Thank you for the help. I don’t know how I didn’t think of that lol.

1 Like