Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with the server vs the client?

Asked by 8 years ago

Ok so i am scripting controllable soldiers who can fire at enemy soldiers from a set distance away. I know a lot about the server and the client and whats what but when the soldiers attack each other i know a few set things will happen

  1. a check will be done to see if attack it is allowed
  2. a ray will be cast using raycasting between the two soldiers
  3. a part will be instanced then deleted as the bullet
  4. the damage will be sent to the soldiers
  5. if the soldier died he will be deleted

so where is the server client line drawn before or after step 2 this has got me thinking and right now i am guessing after step 2 but would that have any effect on the games accuracy or fairness when faster computers play slower ones? thanks for the help

0
They would all need to be server. If it was on client, it would only work for a single person at a time. Client is mainly things that only concern one player, server is for everything else. TheDeadlyPanther 2460 — 8y
0
yes but the client can read what is on the server so could i use a remote events and functions to keep the server from handling all of those requests? ProfessorSev 220 — 8y

Answer this question