How can i reload without a button?

So im making a Doom 1993 clone as a personal project and i cant figure out how to make it so that when the mag is empty it will automatically reload without pressing a button.

Here is a picture for my current set up:

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.

Glad I was able to help you. If you receive an answer, please confirm it to remove it from unanswered questions and vote for it if you like.

thank you very much this is a huge help