I’m using ObjectValues to reward killers in my game, but if an ObjectValue is already found in an humanoid its destroyed, this is very unfair and I wanna go for an assist system, how exactly would I approach it?
function Engine:Give(Humanoid: Humanoid?, Player:Player?)
if not Humanoid:FindFirstChild("__DEATH") then
local __OBJ = Instance.new("ObjectValue")
__OBJ.Name = "__DEATH"
__OBJ.Value = Player
__OBJ.Parent = Humanoid
Deb:AddItem(__OBJ, 5)
else
Humanoid:FindFirstChild("__DEATH"):Destroy()
local __OBJ = Instance.new("ObjectValue")
__OBJ.Name = "__DEATH"
__OBJ.Value = Player
__OBJ.Parent = Humanoid
Deb:AddItem(__OBJ, 5)
end
end