Lua is a easy to learn programming language Roblox uses to create games. The language is designed to be small, efficient, fast, and safe to use.
This script is used inside of the server side. Including workspace and ServerScriptService. These scripts are part of the server so anything inside of the script will effect the server.
Examples: Countdown, opening door in Piggy games
This script is used inside of the client side like the StarterPlayerScript, StarterPack (Used to store tools), StarterGui. Anything inside of this script won't effect the server only you the player.
Examples: VIP Door, Collecting Coins.
This script is used under the server side and is basically just a big table to store functions.
To access this script's functions you need to use a special keyword require(). Using the require function this will allow you to access the content in the module script.
A Remote Event is an event used in roblox to communicate to the server and client. Remote events are have many events and functions
Similar to the Remote Event however it returns a value when fired. Lets say you want to check if the player owns an item you will usually fire an remote event to check if you own it or not using events and functions like
A Bindable Event is similar to a remote event but it only allows a server to server side communication system like a module script communicating to a server script.
The Tween Service is a service that allows you to make animations using ui and parts in the game
The DataStoreService is a service that allows you to save players data.
The UserInputService is a service that gets fired when a input was fired like pressing the w or clicking,
The MarketPlaceService allows you to sell game passes and developer products
The RunService is a service where it fires every frame the game loads in
Sounds are usually played in the client but if you want it to play it on the server the sound service got you covered. The Sound Service allows you to play audio that all clients can hear
For loop is a type of loop used in all programming languages that will repeat the code until it finishes looping through everything.
for index, v in pairs(workspace.Folder:GetChildren()) do
if v:IsA("Part") then
print(v)
end
end
While loop is another loop that is similar to the for loop but it stops when the condition becomes false
while i >= 10 do
i+=1
end
Similar to the while loop but it stops until the condition is true
repeat
i += 1
wait(1)
until i >= 100
The if statement is the condition statement that checks if the condition is true if the condition is false it will go to the else if and if that condition is also false it will enter the else statement
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.