grandisy
(Grand)
August 8, 2022, 9:11am
1
Here is some
background on what I want to achieve Having the same 'things' as different 'things' Puzzle / Problem
What else can I have them as other than strings so it can find the “sword” specifically and not by the name.
if not InventoryGui:FindFirstChild(v4) then
Me, personally I wouldn’t do anything else, that seems to be the best way, you could just name all of the items to different names such as, Sword1, Sword2, Sword3, etc.
Forummer
(Forummer)
August 8, 2022, 6:17pm
3
You’d have to give them a unique identifier, preferably a string or a number.
local Weapons = {
{Name = "Sword", Id = "92JEE"},
{Name = "Sword", Id = "28F2M"}
}
msix29
(msix29)
August 8, 2022, 6:20pm
4
You can save each of them as a random ID
game:GetService("HttpService"):GenerateGuiID --check miss spelling!
grandisy
(Grand)
August 8, 2022, 8:18pm
5
Should I do that or save them as instances for ex, a tool so it won’t go by the name string ?
Forummer
(Forummer)
August 8, 2022, 8:20pm
6
Instances cannot be saved to a DataStore, DataStores only support the primitive value types; Boolean, string, number, nil and table.
grandisy
(Grand)
August 9, 2022, 11:27am
7
Yeah, someone who didn’t understand my situation told me to use instances.