Question : lua roblox global variables
Answered by : hypixel-offical
--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
Source : | Last Update : Mon, 25 Apr 22
Question : how to program lua roblox variables
Answered by : testy-toucan-blcyih7yzzat
--These are variables
variable = "Hi"
print(variable)
--now you will see in the output Hi when you have press the button play
Source : | Last Update : Wed, 09 Sep 20