I have a replication problem

When I press a certain key on the keyboard, I get a fire effect on the character. I want to have the effect of only the character currently playing (the key pressed), and let the rest of the characters see it.

However, when I execute the above function, the effect is being generated at the same time by each client character including the server.

I would appreciate it if you could let me know what you need to modify and add to work for me to work.

** Please check the attached photos and videos.