Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does a value of a StringValue change?

Asked by 7 years ago

I've been working on this game lately that involves tycoons. I implemented a StringValue called "OwnerHealth" that reads the Tycoon Owner's health. This is supposed to allow the tycoon to reset if the Owner of the tycoon dies. The reset basically means that anyone can take the tycoon from that point. The code to read the health and copy it onto the StringValue ran just fine. However, if the owner dies, as I tested, the value of the StringValue does not change, meaning it keeps showing "100" even after death. How do I make the value change when the Tycoon Owner dies?

****Tell me if you need the code, I will reply back

1
Code please, along with any errors and details about the script's location, type, etc. OldPalHappy 1477 — 7y
0
yea code plz macabe55101 38 — 7y

Answer this question