Roblox & Luau Scripting Glossary
Overview
Understanding the terminology used in Roblox and Luau scripting is crucial for effective game development. Below is a glossary of common terms that you will encounter.
A - C
- Attribute: A custom property that can be added to any Instance, allowing developers to store additional data.
- Event: A signal that can be triggered in response to certain actions, allowing scripts to respond dynamically.
- Executor: A tool or program that runs Lua code, often used in the context of exploiting or debugging scripts.
- Instance: The base class for all objects in Roblox, representing any object that can be created in the game.
D - F
- LocalScript: A type of script that runs on the client side, used for tasks that only need to be processed by a single player.
- ModuleScript: A script that allows developers to create reusable code that can be shared across multiple scripts.
- Property: A characteristic of an Instance that can be set or changed, such as size, color, or position.
G - L
- Loadstring: A function that takes a string of Lua code and executes it, often used for dynamic code execution.
- Parent/Child: Refers to the hierarchical relationship between Instances, where a parent Instance can contain child Instances.
- RemoteEvent: An object used for communication between the server and clients, enabling data transfer and event triggering.
M - R
- Replication: The process of synchronizing data between the server and clients, ensuring all players have the same game state.
- Script: A server-side script that runs on the game server, allowing developers to control game logic and behavior.
- Yield: A function that pauses the execution of a script until a certain condition is met, often used with events or delays.
S - Z
- Pcall: A function that calls another function in a protected manner, allowing developers to handle errors without crashing the script.
Examples
Here are a few code snippets to illustrate some of the terms:
Using RemoteEvent
local remoteEvent = Instance.new("RemoteEvent")
remoteEvent.Name = "MyRemoteEvent"
remoteEvent.Parent = game.ReplicatedStorage
Creating a ModuleScript
local myModule = {}
function myModule.sayHello()
print("Hello, world!")
end
return myModule
With this glossary, you should have a better understanding of the terms used in Roblox and Luau scripting. Familiarizing yourself with these concepts will enhance your development skills and enable you to create more complex and engaging games.