Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BoolValue resets on spawn?

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

5 comments

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?

0

Is the instance located inside startergui or starter pack?

0

I tried both but they reset, I tried doing ResetGuiOnSpawn = false but that broke my health GUIs and stuff

0

I would try putting it into the player (not the character).

0

Thanks Bluemonkey, you just taught me something new as well!

1 answer

✓ Accepted answer

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.

1 comment

0

Thank you! You solved another problem of mine as well as teaching me something new!

This discussion is preserved as it was. New answers, comments, and votes are closed.