basically you have a command block spawn tnt with a timer of about 5 seconds, you give it a tag named “missile”
When the player activates the command block, it’ll spawn missile and we’ll have it activate a chain command block which teleports missile to the nearest player