I have two local scripts and I want them to share a variable, and the first way that I tried crashes studio so this may be my only other option. Is it possible?
Yes, but you cannot use anything added to the global table in a LocalScript from a Script.
Items added from a Script can be accessed in a LocalScript, but not vice versa.