On the Content Streaming article, it has this diagram showing what is sent to the client. The diagram shows that Scripts (not LocalScripts) are sent to the client. As far as I know, Scripts are never replicated to the client for security reasons.
Aren’t Script instances replicated, just not the source of the scripts? They show up in the Studio Explorer, even when on client mode.
picture
Seems like they are replicated then. I did not know that.
Yeah, the descendants of all services made available to the client (i.e. not serverstorage and serverscriptservice) are (eventually) replicated to the client. Server scripts are no exception. Their names/properties/children are sent; however, their actual source/bytecode isn’t. As an example, if a server script in workspace has some child (like a stringvalue), the script and the child will be “visible” to the client – from the client perspective, however, the script just acts as a mere container.
I think they chose a script in that Developer Hub page to illustrate how only baseparts/meshparts and their descendants (under workspace) are not initially streamed in; other instances like scripts/folders/etc are streamed in (they could’ve chosen other nonbasepart / nonmeshpart instances to illustrate their point).
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.