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?
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
}
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
The BoolValue is in Backpack, but it can be in either one. I used to spawn them in with a localscript, but that caused the values to clone after each death. Do you mind explaining how I can use your script and how it works?
Backpack resets when a player dies. Basically, my scripts creates a Configuration folder. What I used is another method for Instance.new, I just find it less hassle to use. All the properties are within a table.