how to make global variables in roblox code example
Example 1: how to program lua roblox variables
--These are variables
variable = "Hi"
print(variable)
--now you will see in the output Hi when you have press the button play
Example 2: roblox global variables
--Script 1:
_G.foo = 'bar'
--Script 2:
print(_G.foo)