#Is it possible to create a global const that can be referenced between all scripts
14 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
global does exactly that. Put it in startup_scripts and it can be referenced in server and client.
would that work with an array tho?
const MusicDiscs = [ "11", "13", "blocks", "cat", "chirp", "far", "mall", "mellohi", "otherside", "pigstep", "relic", "stal", "strad", "wait", "ward"]
I tried swapping const MusicDiscs to Global.MusicDiscs and now it thinks its undefined
global is just another variable. global.MusicDiscs will do exactly what you say. Make sure your script load order is correct if you're trying to use it on the startup side.
Where are you checking it and getting undefined?
Oh I see
awesome this is exactly it, thank you!