How can i do a donation system

help pls, i want to do a donation system using modals but idk how to do it
example:
player press M to open modal
player put the name of the player and the value of a attribute that he want to donate
like this: (bananaman 153)
the donated user get its coins and receive a message saying
“AGuy Donated 153 Moneys To You!”