Variables globales de Lua Roblox
--Our variable is this
var="a"
--and we cant use it in a function it gives we an error
function abc()
print(var)
end
abc()
--Output: Error
--We can make it a global variable with using _G. method
_G.var2="b"
function cba()
print(_G.var2)
end
cba()
--Output: b
Hypixel Offical