#How can i data save something like that

1 messages · Page 1 of 1 (latest)

unkempt wave
#

also, im already do data save with jsonStrings but how to transfer all of MoonAmulet to it, maybe roblox have some function like GetDescendats() but it work only for instance

cinder dew
#

local DataStoreService = game:GetService("DataStoreService")

cinder dew
jolly caveBOT
#

studio** You are now Level 25! **studio

unkempt wave
#

I mean how to transfer THIS to jsonString or table

cinder dew
#

oh

#

idk then

#

ggs

#

just wait for another scripter to pass by

dull veldt
#

@unkempt wave can you explain properly 🥀

unkempt wave
dull veldt
#

image to table?

#

wym

#

you mean you want that to be on a image label like a shop button or smtg?

unkempt wave
ripe dock
#

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

ripe dock
#

datastores ain't that complex tbh

#

but idk if you can save instances in datastore

unkempt wave
cinder dew
#

you cant

#

you cant save instances in datastore

unkempt wave
#

cant(

#

i thought i can save table in jsonString but for some reason in not working

ripe dock
unkempt wave
#

you can save tables in jsonString

#

with you code MoonAmulet converts to table and then saving in JsonString

unkempt wave
# ripe dock I guess u can store their values

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