How can I differentiate strings?

I wanna add trading to my tower defense game and I was able to find a tutorial. The tutorial used tools and to differentiate each tool (because you might have multiple of the same one), they added a NumberValue with a random ID. However, my game uses strings of the tower name to store data in tables like the towers you have and you can have duplicates but there’s no properties of strings and I don’t wanna add an id after it because that would just break everything. Do I even have to differentiate them, is there any better tutorial that works with tables and not tools, any help is appreciated!

1 Like

you could use string.split for this. For example, if a tower is called Tower5 and is saved as Tower5, maybe save them as Tower5_RANDOMID and use string.split to get the second one for the id. The wording was a little confusing, so do let me know if this is not what you meant.

1 Like

Could you give examples of the names?