Hook up the function to a character added callback.
Do you mean something like this?
local Character = Player.Character or Player.CharacterAdded:Wait()
Player.CharacterAdded:Connect(function(Char)
Character = Char
print('new char')
Character.Humanoid.Died:Connect(function()
print('char')
if not Player:FindFirstChild('DogeTag') then
print('not doge')
if table.find(PlayingPlayers,Player) then
print('is playing')
Values.KillFeed.Value = Player.Name..' was killed by the Doge!'
local ReturnValue = table.find(PlayingPlayers,Player)
table.remove(PlayingPlayers,ReturnValue)
end
end
end)
end)