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

BoolValue resets on spawn?

Asked by
Bantool 11
7 years ago

I made it equal true and I intend for it to stay true for the entire game even if the player resets but when he does it turns false. And yes, every player has this BoolValue

0
"Stay true for the entire game even if the player resets but when he does it turns false " ... WHAT?? "even if the player resets but when he does it turns false" WHATTTTTTT? User#17685 0 — 7y
0
Is the instance located inside startergui or starter pack? DanzLua 2879 — 7y
0
I tried both but they reset, I tried doing ResetGuiOnSpawn = false but that broke my health GUIs and stuff Bantool 11 — 7y
0
I would try putting it into the player (not the character). Bluemonkey132 194 — 7y
0
Thanks Bluemonkey, you just taught me something new as well! Bantool 11 — 7y

1 answer

Log in to vote
0
Answered by
DanzLua 2879 Moderation Voter Community Moderator
7 years ago

Well I'm assuming your value instance is located inside startergui and by the look of the comments you have already experimented with the bool ResetGuiOnSpawn of startergui and it seems other things have broke from that. Let's do it like this then, besides that bool there is also another way to prevent stuff from resetting inside startergui. There is a bool called ResetOnSpawn located inside a screengui that if set correctly will prevent that specific screengui from resetting if the character respawns, this is useful because instead of having everything reset or not we can have certain things inside startergui reset or not. To fix your problem create a new screengui, maybe name it "Values", place your value instance inside that screengui and change that instance's property ResetOnSpawn to false.

0
Thank you! You solved another problem of mine as well as teaching me something new! Bantool 11 — 7y
Ad

Answer this question