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

What is the meaning of NotReplicated?

Asked by
cegberry 432 Moderation Voter
5 years ago

In Roblox’s developer site, they always put a tag like ReadOnly, etc... The only tag I’m not understanding on what it means is NotReplicated... What does it really mean?

Here’s my guess: When a localscript changes a property with NotReplicated on it, it won’t be copied/made on the server making it so it won’t change for other clients as well, but DistrubutedGameTime seems to not do this, and have a separate time for Client and Server

0
NotReplicated means that it can't be replicated over the server/client boundary. That means that you can't transfer it using RemoteEvents or RemoteFunctions. DeceptiveCaster 3761 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

NotReplicated means that it will not be replicated from the server/client model that Roblox currently uses. Let me explain.

If I were to access the game's CreatorId from the client, it would not go through properly.

print(game.CreatorId)

If I were to use that script in a Server script, it would print out the correct ID. In my case, it is 18875912.

However, the output is different on the client. It would print out 0, as it doesn't have access to it!

0
In addition to Control22's answer, read this Wiki article for more information about Roblox's Client-Server model: https://developer.roblox.com/articles/Roblox-Client-Server-Model WillieTehWierdo200 966 — 5y
Ad

Answer this question