| Type | Description | Example |
|---|---|---|
string |
Text | "Hello", "Score: 100" |
number |
Numbers | 42, 3.14, -7 |
boolean |
True or false | true, false |
table |
Group/list of values | {1, 2, 3}, {Name="A"} |
function |
A block of code you can run | function sayHi() end |
nil |
Nothing / no value | local x = nil |
| Type | Description | Example |
|---|---|---|
Instance |
Any object in the game | game.Workspace.Part |
Enum |
Predefined options/constants | Enum.Material.Neon |
TweenInfo |
Controls tween animation settings | TweenInfo.new(1, Enum.EasingStyle...) |
RBXScriptSignal |
Events like .Touched or .Changed |
Part.Touched:Connect() |
RBXScriptConnection |
Returned from .Connect() |
Used to .Disconnect() signals |
| Value Type | Storesโฆ | Example Value |
|---|---|---|
StringValue |
Text string | "PlayerName" |
BoolValue |
Boolean (true/false) | true |
IntValue |
Integer number | 100 |
NumberValue |
Decimal number | 3.14 |
ObjectValue |
Reference to another Instance | workspace.Part |
Vector3Value |
3D position/size | Vector3.new(0,5,0) |
CFrameValue |
Position + rotation | CFrame.new(0,5,0) |
Color3Value |
Color | Color3.new(1, 0, 0) |
| Type | Description | Example |
|---|---|---|
Vector3 |
3D coordinates | Vector3.new(1, 2, 3) |
Vector2 |
2D coordinates (UI, etc.) | Vector2.new(50, 100) |
CFrame |
3D position + rotation | CFrame.new(0, 10, 0) |
UDim2 |
2D size/position (UI) | UDim2.new(0,100,0,50) |
UDim |
1D size/position | UDim.new(1, 0) |
Ray |
A raycast direction line | Ray.new(start, direction) |
Region3 |
A 3D box region | Used for detection |
| Type | Description | Example |
|---|---|---|
Color3 |
RGB color values | Color3.new(1, 0, 0) |
BrickColor |
Predefined color names | BrickColor.new("Bright red") |
ColorSequence |
For gradient particles | ColorSequence.new(Color3...) |
NumberSequence |
Particle sizes/times | NumberSequence.new(1) |
| Type | Description | Example |
|---|---|---|
Font |
Font style for GUI | Enum.Font.GothamBlack |
KeyCode |
Keyboard input | Enum.KeyCode.Space |
UserInputType |
Type of input (keyboard, mouse) | Enum.UserInputType.MouseButton1 |
InputObject |
Info about player input | Input.InputType |
| Type | Description | Example |
|---|---|---|
HumanoidStateType |
Player states like jumping | Enum.HumanoidStateType.Jumping |
AnimationTrack |
Running animations | Humanoid:LoadAnimation(anim) |
Path |
NPC movement path | PathfindingService:CreatePath() |
Motor6D |
Body joints | Used in character rigs |
Attachment |
Used for effects, beams, etc. | Attachment.WorldPosition |