Skip to main content

Hidden

Inherits from Instance

A service used to store objects that are replicated but hidden to all clients.

Not Creatable Service

Summary

Hidden is a general container service for storing objects that are available to both the server and the connected clients. It is ideal to store ModuleScripts, NetworkEvents and other objects that are useful to both server-side and client-side scripts.

Objects parented to this service are fully replicated to clients. Any changes that are made on the client persist, but aren't replicated to the server. Client changes may be overwritten if the server does something that overwrites those changes.

Certain changes on the client, such as moving an object from the Environment to Hidden, can lead to desynchronization issues (for example, physics updates not being replicated to the object).

You can parent a ModuleScript to this service to require it from any other script and run it as normal. Such modules typically store code that is shared by the server and the client.