How can you make a Owner Kills You Badge

im Trying To Make A Owner Kills You Badge were When the Owner Kills You In game, It Gives you a Badge For it

this is i got So Far

local badgeId = 0

function newCharacter(Character)
	Character:WaitForChild("Humanoid").Died:connect(function()
		if Character:FindFirstChild("creator") and Character.creator:IsA("ObjectValue") then
			if Character.creator.Value.userId == game.CreatorId then
				game:GetService("BadgeService"):AwardBadge(game.Players:GetPlayerFromCharacter(Character).userId, badgeId)
			end
		end
	end)
end

function newPlayer(Player)
	Player.CharacterAdded:connect(newCharacter)
end
game.Players.PlayerAdded:connect(newPlayer)