ReplicatedStorage
ReplicatedStorage : Instance
Overview
ReplicatedStorage is a storage container used for sharing data or scripts between the server and clients. It's ideal for storing Objects that need to be accessed by both sides, such as ModuleScript, RemoteEvent, and RemoteFunction.
Objects placed in this container are automatically replicated to the client, and any changes made on the server are reflected on the client. However, changes made on the client are not reflected back to the server.
Unlike server-side Scripts, LocalScripts placed in ReplicatedStorage do not run. To run properly, they must be placed in valid locations like StarterPlayerScripts.
ModuleScripts stored in this container can be loaded and run using require() from both server and client scripts, making it easy to manage and reuse shared module code efficiently.
Properties
Methods
Events
Last updated