Skip to content

Commit

Permalink
update Open Source Docs from Roblox internal teams
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx-open-source-docs[bot] committed Feb 5, 2025
1 parent a55cc3e commit 43efabd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions content/en-us/assets/feeds/robloxYoutubeAvatar.webp
Git LFS file not shown
6 changes: 3 additions & 3 deletions content/en-us/includes/engine-comparisons/script-locations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ title: include

Location | Description
:--- | :---
Workspace | Represents the game world. Only runs server scripts. This location works well for scripts that attach directly to objects and control their behavior.
ReplicatedFirst | Contains objects that replicate to the client before anything else. This location is ideal for the absolute minimum set of objects and scripts necessary to display a loading screen.
Workspace | Represents the game world. This location works well for server scripts that attach directly to objects and control their behavior.
ReplicatedFirst | Contains objects that replicate to the client before anything else. This location is ideal for the absolute minimum set of objects and client scripts necessary to display a loading screen.
ReplicatedStorage | Contains objects that are replicated to both the client and the server. This location is ideal for `Class.ModuleScript\|ModuleScripts` that you want to use on both the server and the client. `Class.LocalScript\|LocalScripts` do not run from this location, but `Class.Script\|Scripts` with a run context of `Client` do.
ServerScriptService | Contains server-side scripts. This location is ideal for scripts that need to access server-side functionality or objects, such as game logic and cloud storage.
ServerScriptService | Contains server scripts. This location is ideal for scripts that need to access server-side functionality or objects, such as game logic and cloud storage.
ServerStorage | Contains server-side objects. This location is ideal for large objects that don't need to be immediately replicated to clients when they join an experience. Scripts do not run from this location, but you can store server-side `Class.ModuleScript\|ModuleScripts` here.
StarterPlayer.StarterCharacterScripts | Contains `Class.LocalScript\|LocalScripts` that run when the character spawns.
StarterPlayer.StarterPlayerScripts | Contains general-purpose `Class.LocalScript\|LocalScripts` that run when the player joins the experience.
Expand Down
2 changes: 1 addition & 1 deletion content/en-us/scripting/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The Roblox Engine doesn't guarantee the order in which objects are replicated fr
local PickupManager = require(ReplicatedStorage.PickupManager)
```

You **can** use `WaitForChild()` in these scripts to get objects from other services, but doing so largely negates the benefits of using `ReplicatedFirst`.
You **can** use `WaitForChild()` in these scripts to get objects from other services, but doing so negates the benefits of using `ReplicatedFirst`.

1. The client continues loading the rest of the experience.

Expand Down
2 changes: 1 addition & 1 deletion content/en-us/scripting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ A big part of adapting to a new development environment is configuring it to mee
- The **Script Analysis** window shows a summary of errors and warnings, but you might find its utility limited; the Script Editor already highlights these issues as you type.
- Logging capabilities are minimal, with no concept of log levels like `DEBUG` or `FATAL`. Use `Global.LuaGlobals.print()` and `Global.RobloxGlobals.warn()`.

For more information about configuring Studio for scripting, see [Script Editor](../studio/script-editor.md). For information on using your favorite text editor and version control system, see [External Tools](../projects/external-tools.md).
For more information about configuring Studio for scripting, see [Script Editor](../studio/script-editor.md). For information on using your favorite text editor and version control system, see [External tools](../projects/external-tools.md).

## Your second script

Expand Down

0 comments on commit 43efabd

Please sign in to comment.