When an objects property is changed
Whenever an objects property is changed, clua will tell the server core (only on server-side) to tell other clients to-do the same. Tho, what if one of the clients/players have not loaded the part or it just doesnt simply exist there? In that term cuberns client core will simply neglect the demand and will do nothing. However, not ALL the properties are replicated. Some properties which do-not exist on client-side are not replicated at all. For-example thePart
s color
property is replicated:
server.clua
Manually doing replication
To achieve the idea of doing replication manually, you’ll be required to check out theRemoteEventService
service. To save ya some time lets just dig-in with a small example. Let us say we want to let a connected client/user know about why this one cube: I just hate it.
On the server side we start off by requiring the service:
server.clua
client.clua