Luau Cheatsheet Very Useful
Luau Cheatsheet Very Useful
---
- Examples:
#### Operators
- **If-Else Statement**:
```lua
if condition then
-- code
-- code
else
-- code
end
```
- **For Loop**:
```lua
for i = 1, 10 do
print(i)
end
```
- **While Loop**:
```lua
while condition do
-- code
end
```
- **Touched Event**:
```lua
part.Touched:Connect(function(hit)
end)
```
---
#### Algebra
- Example: \( 2x + 3 = 11 \)
- **Systems of Equations**:
- Example:
```plaintext
2x + y = 10
x-y=2
```
#### Geometry
- **Graphing Tips**: Plot y-intercept first, then use slope to find other points.
---
---
- **Navigation**: Move (G), scale (S), rotate (R), zoom (Scroll wheel).
#### Creating Basic Shapes
- **Adding Textures**: Import textures and assign them in the shader editor.
---
### 5. **Math Practice Exam for Middle School Students (with Solutions)**
1. Solve: \( 3x + 5 = 20 \)
2. Simplify: \( 2a + 3a - 4 \)
#### Geometry Section
2. If a bag has 3 red balls and 5 blue balls, what is the probability of picking a
red ball?
1. \( x = 5 \)
2. Simplified answer: \( 5a - 4 \)
3. Area = \( 12 \) cm²
---
This content should be ready to input into documents for each topic,
providing clear and educational resources for readers on Scribd! Let me know
if you need further customization.