Jump to content

Client + server.lua


Guest

Recommended Posts

Hello there

I wanted to ask you guys

when i must do client.lua and server.lua

because theres resources with them both 

and theres resources with server.lua only

 

Link to comment
  • Moderators

It all depends which computer should execute the code. They run in different environments, even if you run a server on your own device.

 

 

1. server (code)

  • Server = computer

 


 

PING / (~ 2) is IN BETWEEN client and server! = delay = LAG

 


 

2. client (same code for every client)

  1. client = player = computer
  2. client = player = computer
  3. client = player = computer
  4. etc.
Edited by IIYAMA
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...