Class
ReplicatedFirst
NotCreatableService
A container whose contents are replicated to all clients (but not back to the server) first before anything else.
ReplicatedFirst is a container whose contents are replicated to all clients
(but not back to the server) before anything else. It's most commonly used to
store LocalScripts and other elements that are essential
for the experience's start such as
loading screens.
For objects that do not need to be replicated before anything else, use
the ReplicatedStorage container instead.
There are some key considerations for running LocalScripts
in ReplicatedFirst:
- Since its contents replicate before anything else in the experience,
LocalScriptsrunning inReplicatedFirstwill need to wait for any objects they require to replicate usingInstance:WaitForChild() - Any objects that are to be used by a
LocalScriptinReplicatedFirstshould also be parented toReplicatedFirst. Otherwise, they may replicate to the client late, yielding the script and negating the benefit of initial replication.
Methods 1#
| RemoveDefaultLoadingScreen | Immediately removes the default Roblox loading screen. |
RemoveDefaultLoadingScreen(): ()#
Immediately removes the default Roblox loading screen. Note that if any
object has been placed in ReplicatedFirst, the default loading screen
will be removed after a few seconds regardless if this method has been
called or not.
You should not remove the default loading screen unless you want to display your own. If you remove the default screen without a replacement, players will be able to see geometry loading in the background.
Returns
()
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild