What is a client?

Hello, I was programming my new indie game and I stumbled across a post that mentioned something about a “client” in their code. What is a client?

1 Like

There is the server and there are some clients, if you move a part in the server with Normal Script everyone will see that the part moved in their clients, because everything that you do in the server replicate to every single client, and client is a player that playing on the server/game hope it helped, if it didn’t then you can see some tutorials.

This should explain how it works: Roblox Client-Server Model

In Roblox games, you can think of someone who is playing the game as the “client”. You can read more about it here.

For a basic understanding, for every instance of a game running, there is one server. For every player in that server, there is one client. Let’s say you join a Roblox game. There are 20 people in that specfic game. For that game, there is one server and twenty clients.

Clients cannot change things on the server. For example, if I’m an exploiter and I want to move a part, I can move that for my client. However, changes won’t be effected on the server, meaning no one else will be able to see that I moved that part. If I’m a sneaky exploiter, however, and there is a RemoteEvent which moves a part which isn’t protected, I can fire that specific remote. Doing so will allow for server code associated with that remote to execute, thus moving the part for all associated clients and the server.

4 Likes