Variables
✏ Beginners Scripting Guide ✏
Last updated
✏ Beginners Scripting Guide ✏
Last updated
In this section, we will discuss variables. A variable is a name that can hold data types such as booleans, numbers, strings, etc.
When naming variables you CANNOT use space, number, and reserved names.
and
for
or
break
function
repeat
do
if
return
else
in
then
elseif
local
true
end
nil
until
false
not
while
A variable can be GLOBAL and LOCAL. GLOBAL means it can be accessed everywhere in the script and LOCAL means it can be only accessed in a certain block of codes.