Skip to content

Commit 78587e1

Browse files
update Open Source Docs from Roblox internal teams
1 parent 925b887 commit 78587e1

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed
Lines changed: 3 additions & 0 deletions
Loading

content/en-us/reference/engine/classes/BasePart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ properties:
227227
A reference to the root part of the assembly.
228228
description: |
229229
This property indicates the `Class.BasePart` automatically chosen to
230-
represent the assembly's root part. It is the same part that's returned
231-
when developers call `Class.BasePart:GetRootPart()|GetRootPart()`.
230+
represent the assembly's root part. If the part is not parented to the `Class.Workspace`,
231+
this property will be `nil`.
232232
233233
The root part can be changed by changing the
234234
`Class.BasePart.RootPriority|RootPriority` of the parts in the assembly.

content/en-us/tutorials/fundamentals/coding-2/code-a-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
```
5252

5353
<Alert severity="warning">
54-
Type end yourself if the code doesn't autocomplete for some reason. If the function doesn't have an end, your code won't run.
54+
Type `end` yourself if the code doesn't autocomplete for some reason. If the function doesn't have an `end`, your code won't run.
5555
</Alert>
5656

5757
### Add code to functions
@@ -82,7 +82,7 @@ As you typed, your code should have indented automatically. This makes it easier
8282

8383
### Tell the function to run
8484

85-
There's one more thing we need to do before the function will work, and that's to tell it to run, also known as **calling** a function. Functions won't run until they are called. To call a function, type the function's name including the `()` at the end.
85+
There's one more thing we need to do before the function will work, and that's to tell it to run, also known as **calling** a function. Functions won't run until they are called. To call a function, type the function's name including the `()`.
8686

8787
1. Under `end`, type `printFood()`.
8888

@@ -94,7 +94,7 @@ There's one more thing we need to do before the function will work, and that's t
9494
printFood()
9595
```
9696

97-
2. Test the code. Your favorite food should appear in the Output window.
97+
2. Test the code. Your favorite food should appear in the [Output](../../../studio/output.md) window.
9898

9999
<img src="../../../assets/education/coding-2/output-function-example.png" width="70%" />
100100

@@ -103,5 +103,5 @@ There's one more thing we need to do before the function will work, and that's t
103103
If your code doesn't run, check for errors such as the following:
104104

105105
- Check that `print("Your Food Here")` is between `local function printFood()` and `end`.
106-
- Make that your food is a string, with quotations on `"each side"`.
106+
- Make sure that your food is a string, with quotations on `"each side"`.
107107
- Check that the function is called after it's been created. `printFood()` should be below `end`.

0 commit comments

Comments
 (0)