1.19.4 Set fire to player

How can I set fire to a player in 1.19.4? I currently spawn a fireball above them and set the motion of the fireball to -10, but that leaves fire if they are walking too fast and that fire is very problematic.

Continue to help post