ReplicatedFirst
A container whose contents are replicated to all clients (but not back to the server) first before anything else.
| Memory category | Instances |
|---|
Member index 7
Description
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,
LocalScripts running in
ReplicatedFirstwill need to wait for any objects they require to replicate using Instance:WaitForChild() - Any objects that are to be used by a LocalScript in
ReplicatedFirstshould also be parented toReplicatedFirst. Otherwise, they may replicate to the client late, yielding the script and negating the benefit of initial replication.
History 17
- 573 Change ReturnType of SetDefaultLoadingGuiRemoved from void to null
- 573 Change ReturnType of RemoveDefaultLoadingScreen from void to null
- 462 Change ThreadSafety of RemoveDefaultLoadingGuiSignal from to Unsafe
- 462 Change ThreadSafety of FinishedReplicating from to Unsafe
- 462 Change ThreadSafety of DefaultLoadingGuiRemoved from to Unsafe
- 462 Change ThreadSafety of SetDefaultLoadingGuiRemoved from to Unsafe
- 462 Change ThreadSafety of RemoveDefaultLoadingScreen from to Unsafe
- 462 Change ThreadSafety of IsFinishedReplicating from to Unsafe
- 462 Change ThreadSafety of IsDefaultLoadingGuiRemoved from to Unsafe
- 303 Add DefaultLoadingGuiRemoved
- 303 Add SetDefaultLoadingGuiRemoved
- 169 Add FinishedReplicating
- 169 Add IsFinishedReplicating
- 154 Add RemoveDefaultLoadingGuiSignal
- 154 Add RemoveDefaultLoadingScreen
- 154 Add IsDefaultLoadingGuiRemoved
- 154 Add ReplicatedFirst
Members 7
DefaultLoadingGuiRemoved
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of DefaultLoadingGuiRemoved from to Unsafe
- 303 Add DefaultLoadingGuiRemoved
FinishedReplicating
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of FinishedReplicating from to Unsafe
- 169 Add FinishedReplicating
IsDefaultLoadingGuiRemoved
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of IsDefaultLoadingGuiRemoved from to Unsafe
- 154 Add IsDefaultLoadingGuiRemoved
IsFinishedReplicating
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of IsFinishedReplicating from to Unsafe
- 169 Add IsFinishedReplicating
RemoveDefaultLoadingGuiSignal
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of RemoveDefaultLoadingGuiSignal from to Unsafe
- 154 Add RemoveDefaultLoadingGuiSignal
RemoveDefaultLoadingScreen
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| null | ||
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.
| Thread safety | Unsafe |
|---|
History 3
- 573 Change ReturnType of RemoveDefaultLoadingScreen from void to null
- 462 Change ThreadSafety of RemoveDefaultLoadingScreen from to Unsafe
- 154 Add RemoveDefaultLoadingScreen
SetDefaultLoadingGuiRemoved
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| null | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 3
- 573 Change ReturnType of SetDefaultLoadingGuiRemoved from void to null
- 462 Change ThreadSafety of SetDefaultLoadingGuiRemoved from to Unsafe
- 303 Add SetDefaultLoadingGuiRemoved