🚀Script Optimization
Learn how to write optimized code!
General Practices
myVariable = false -- Don't use this
local myVariable = false -- Use this
function someFunction() -- Don't use this
print('Im a global function!')
end
local function someFunction() -- Use this
print('Im a local function!')
endfunction someFunction()
local table = {}
table.insert(table, {}) -- Don't use this
table[#table+1] = {} -- Use this
endCode Readability
Native Usage
Loops
Security
Event Handlers
Last updated
Was this helpful?
