So one of my scripts changes a BoolValue from false to true to say if the player is that class or not.
The problem is after the player dies, the BoolValue Resets
Is there any way to make it not reset after death?
Is the BoolValue
in PlayerGui
or Backpack
?
There's many ways to avoid this.
Maybe by using a Configuration
folder parented to the player, although it would involve a little bit of change in your code.
local Create = assert(LoadLibrary("RbxUtility")).Create local Configuration = Create "Configuration" { Name = "Stats", Parent = game.Players.LocalPlayer }; local Stat = Create "BoolValue" { Name = "Bool", Value = true, Parent = Configuration }