Local Scripts
Every Roblox game (single-player and multiplayer) uses the
server-client model.
The Server Client Model
The server is the part of a Roblox game that is kind of like an
administrator. The camera is not directed to any client. The server is
necessary for replication across all clients.
The client is the player playing the game.
When something happens on the server, it is replicated to all clients.
When something happens on the client, it is replicated only to the
client.
● There are times when you want to send information from the server
to the client, client to server, server to all clients, or
server-client-server, client-server-client.
How would we replicate only to the client, then
only to the server?
● For replicating only to the client and not other clients, we use
local scripts.
● For replicating to the server, we use server scripts.
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
In summary, the client is the player, the server is the game. We use
local scripts when we want something only to replicate to an
individual client, and use server scripts when we want to replicate to
all clients.
Local Scripts
Every Roblox game (single-player and multiplayer) uses the
server-client model.
The Server Client Model
The server is the part of a Roblox game that is kind of like an
administrator. The camera is not directed to any client. The server is
necessary for replication across all clients.
The client is the player playing the game.
When something happens on the server, it is replicated to all clients.
When something happens on the client, it is replicated only to the
client.
● There are times when you want to send information from the server
to the client, client to server, server to all clients, or
server-client-server, client-server-client.
How would we replicate only to the client, then
only to the server?
● For replicating only to the client and not other clients, we use
local scripts.
● For replicating to the server, we use server scripts.
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
In summary, the client is the player, the server is the game. We use
local scripts when we want something only to replicate to an
individual client, and use server scripts when we want to replicate to
all clients.
Local Scripts
Every Roblox game (single-player and multiplayer) uses the
server-client model.
The Server Client Model
The server is the part of a Roblox game that is kind of like an
administrator. The camera is not directed to any client. The server is
necessary for replication across all clients.
The client is the player playing the game.
When something happens on the server, it is replicated to all clients.
When something happens on the client, it is replicated only to the
client.
● There are times when you want to send information from the server
to the client, client to server, server to all clients, or
server-client-server, client-server-client.
How would we replicate only to the client, then
only to the server?
● For replicating only to the client and not other clients, we use
local scripts.
● For replicating to the server, we use server scripts.
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
In summary, the client is the player, the server is the game. We use
local scripts when we want something only to replicate to an
individual client, and use server scripts when we want to replicate to
all clients.
Local Scripts
Every Roblox game (single-player and multiplayer) uses the
server-client model.
The Server Client Model
The server is the part of a Roblox game that is kind of like an
administrator. The camera is not directed to any client. The server is
necessary for replication across all clients.
The client is the player playing the game.
When something happens on the server, it is replicated to all clients.
When something happens on the client, it is replicated only to the
client.
● There are times when you want to send information from the server
to the client, client to server, server to all clients, or
server-client-server, client-server-client.
How would we replicate only to the client, then
only to the server?
● For replicating only to the client and not other clients, we use
local scripts.
● For replicating to the server, we use server scripts.
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
In summary, the client is the player, the server is the game. We use
local scripts when we want something only to replicate to an
individual client, and use server scripts when we want to replicate to
all clients.