For context, I am doing a rpg game, And currently trying to do Unique ID’s and Names Identifiers, I already did the Tools Saving Part , I am using Replica Module by loleris to do this, but i am currently stuck at how i would Add these
(I added notes on the script)
local profile = self.Profiles[player]
if not profile then
return
end
local tools = {}
local inventory_folder_ = Inventories[player.Name]
for _, item in ipairs(inventory_folder_:GetChildren()) do
table.insert(tools, item.Name)
end
warn(tools)
`-- Current Output with this code :
-- 1) "ObjectName" -- < Array
profile.Replica:Set({ "tools" }, tools)
-- Expected output >>
-- ["ObjectName"] = { -- < Object, not array
-- ["UniqueId"] = "example1",
-- ["WeaponName"]
--}`
I’ve Readed this on the docs, But i find it confusing to use