How would I achieve an "Assist" system

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
1 Like

You can utilize a StringValue to keep track of players who hit the enemy. Each time a player hits the enemy, you add their name to the StringValue. Later, you can use string.split to extract the player names and store them in a table then use their name to your liking

1 Like