#How can i data save something like that
1 messages · Page 1 of 1 (latest)
DataStoreService ^v^
local DataStoreService = game:GetService("DataStoreService")
?
** You are now Level 25! **
I mean how to transfer THIS to jsonString or table
@unkempt wave can you explain properly 🥀
sec
Basically i nee to transfer information on image to table
MoonAmulet =
{
["BlueSideCash"] =
{
["Buff"] = 20
}
["GradeDiscount"] =
{
["Buff"] = 5
}
}
image to table?
wym
you mean you want that to be on a image label like a shop button or smtg?
You can set up a for loop that logs everything in an object; for example
local Objects = {}
local ToLog = yourFolder:GetChildren()
for _,Child in pairs(ToLog) do
-- set up an index
Objects[Child.Name] = {}
Objects[Child.Name]["Main"] = Child
for _,Descendant in pairs(Child:GetChildren()) do
Objects[Child.Name][Descendant.Name] = Descendant.Value
end
end
Basically set an index with the object's name to a value or a table
u can make this more advanced and check if it has any children but this is a basic script
yoooooo thanks you so much
So you have better method?
i just check
cant(
i thought i can save table in jsonString but for some reason in not working
I guess u can store their values
Ye i fix that
you can save tables in jsonString
with you code MoonAmulet converts to table and then saving in JsonString
yo bro sorry for pinging again
{
["CashMultiply"] = ▼ {
["Buff"] = 18
},
["GradeDiscount"] = ▼ {
["Buff"] = 9
}
}
so if i have this table how can i access to Name AND Buff
for _, name in Amulet do
print(name)
end
if i do this it can only read Buff values, but i need to check names too
Oh nevermind
