So I need a bunch of values from this local script I made. It 'Instance.news' all of them, and when I check the player, it works fine and it has all of the values.
The problem is, if the player dies, then they clone, making 2 pairs of each value, and it goes on
Is there any way to stop this from happening? I only want 1 of each value
This is the script:
player = script.Parent.Parent
local Heavy = Instance.new("BoolValue",player)
Heavy.Name = "Heavy"
local Scout = Instance.new("BoolValue",player)
Scout.Name = "Scout"
local Medic = Instance.new("BoolValue",player)
Medic.Name = "Medic"
local Builder = Instance.new("BoolValue",player)
Builder.Name = "Builder"
local Speed = Instance.new("NumberValue",player)
Speed.Name = "Speed"
local Health = Instance.new("NumberValue",player)
Health.Name = "Health"

1 comment
Sorry but I don't have this question anymore. Plus you messed up some parts like health and speed are numbervalues and stuff, but thanks for trying