Variabel Roblox
local myString = "string variable"
local myBool = true
local myInt = 5
print(myString)
print(myBool)
print(myInt + myInt)
Slow Sloth
local myString = "string variable"
local myBool = true
local myInt = 5
print(myString)
print(myBool)
print(myInt + myInt)
x = 0 -- Global variable "x"
for i = 1, 5 do
x = x + 1
print("Global 'x' = " .. x)
end
print("Global 'x' = " .. x)