I put a bool value in the character that i change with scripts on the outside.
heres my problem the value resets after the player dies is there any way to prevent this?
If it’s in the character, the starter character will always spawn the player with the same value. It’s probably best to move the value somewhere in the the player rather then the character directly.
Just make sure if it’s in the client, it’s secure to not be tampered with.
Like where will i put it. Could i just make a value in serverscriptservice with the players name on it?
You could just put it inside of the player instance of the character.
Put it in starter player or:
game.Players.PlayerAdded:Connect(function(player)
local BoolValue = Instance.new("BoolValue", player)
BoolValue.Name = "Name Here"
end)
Or you could just put it in starterplayscripts.
So when the humanoid dies the player doesnt reset? I thought the player did reset.
Yes, however the boolvalue is stored under the player and not the character.
its fine because the scripts that need that value are in starterplayer so i guess its fine.
Only the character respawns on death. The only time the player will be reset if the player leaves.