I'm trying to change a variable's value in a script that only appears when the game starts, so I'll have to do that from another but I don't know how
You can use the _G
, which is a table shared by all scripts. Usage:
script1:
wait(5); _G.variablesValue = 10;
script2;
repeat wait() until _G.variablesValue == 10 print("yuht");
Notes..