I use this technic. first, select your “remain bullet” variable, and in “Details” set “Replication” to “RepNotify”.
now a function created go to it.
now check if your bullet equals 0 so reload the gun automatically.