I do not know how to use global variables.
I am using a while loop and using a variable to determine whether or not it is true.
I want to change this variable through another script, although I need to use a global variable for that I believe. But I cannot use a global variable because I do not know how to use them.
Can I please get some help with this.
_G.Apple = true
while Apple == true do
It says that Apple still is undefined.

6 comments
Can you include your two scripts? It would make explaining it easier
I only have 1 because I dont understand the global variables.
_G, also you can use remote events..
_G.variablename
_G = Apple. That did not work. Also, I need to know how to put this into another script properly as well as update the value.
Ok i did it.