- Home /
How to run a script to only 1 player in a multiplayer fps
So I am making a fps but I can't run a script to only one player, instead to all the players; example, I shoot: the otherones shoot too, I reload: the other ones too.
So maybe a answer on how to shoot without the other one shoot also.
Thanks
Answer by DESTRUKTORR · Aug 15, 2012 at 03:20 PM
Don't run the script on the server. Run it on the client, and synchronize appropriate variables/fields with the server end's classes.
Look here for more info on how that would essentially work. You may also want to look here, and here, for some more in-depth example and help.
Also, take a look at this answer, for some more links to examples and tutorials (though some links are broken, most still work).
Your answer
![](https://koobas.hobune.stream/wayback/20220613075717im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Bleeding and Health Generation Skript 1 Answer
Make so that a player cant see the players model? 1 Answer
A name For the Character Please Help 3 Answers
Restricted Area 2 Answers
Erro in MultiPlayer 0 Answers