#Data Saving Issues

1 messages · Page 1 of 1 (latest)

woeful zenith
#

i have this datasaving script for the tools in the backpack to save. allthough, if i have one tool equipped and leave meanwhile, the tool is gone. i know that its because the tool is being moved to the character but i dont know how to save it correctly.

normal wadi
#

i think you might need dataquartz (joking)

woeful zenith
#

thats not help ive been sitting on this script for 20 hours or so crying

woeful zenith
#

so

#

in my game

#

there like items "crystals

#

that u get at certain ticks of event

#

but that works fine

#

but if u hold the crystal in ur hand

#

and leave the game

acoustic raven
#

if i were you

woeful zenith
#

the crystal dissapears

acoustic raven
#

i’d save it in a table

woeful zenith
#

but if u dont hold it it works perfectely fine

acoustic raven
#

every time a player gains a crystal

#

save it to a player profile

#

then setasync that

woeful zenith
#

ok i will give it a try

#

and another question

#

when i got more then one 1 tool with the same name can it be saved in a table?

void grove
woeful zenith
#

bro ik

#

but how

void grove
#

and if its a tool insert it into table

woeful zenith
#

I already tried to put it in a table but idk if i done it correctly

woeful zenith
#

@flint forum any tips?

flint forum
#

btw you cant

woeful zenith
#

lol

acoustic raven
#

if your indexing it by name

flint forum
#

If you've duplicate items u could make a system that tells you amount of duplicated items

#

like ["item"] = { amount = 12 }