Posibility of doing this?

Is it possible to make a script that says for every frame for all players in human players if (attribute) of selected player == NaN then do: set (attribute) of selected player to 0

idk ill have to try but maby