On the start of my game, a few "special" objects will have their name changed to a randomly generated key. To note, i'm just doing this to make it a little more time consuming to exploit key aspects of my game, I DO NOT think this will end exploiting once and for all.
Now my issue you may ask, is referencing that object from other scripts. I have no problem referencing the object from the script the name was changed in. However, I need help figuring out how I can correctly identify that object from other scripts throughout my game.
I KNOW it's possible to do this as i've seen people use this method in their games, I just can't figure out how they're referencing objects from many different scripts throughout the game.
local a = math.random local oof = {} table.insert(a,oof)
they will be in order so you can grab them by number