WoozyNate
(Nate)
September 28, 2021, 5:42pm
#1
I need help figuring out how to save instances (and their values) inside of a folder. I want it so each item that the player owns can have its own independent level, xp, etc.
if anyone can help me, or send me other threads on this that can help me; that would be fantastic!
Qin2007
(Qin2007)
September 28, 2021, 5:46pm
#2
for that just parent the instances to the player
Mystxry12
(Mystxry)
September 28, 2021, 5:56pm
#3
YourInstance.Parent = FolderPath -- such asPlayerFolders.RaayyCast.Inventory.Ninja
Basically parent your instance to the folder
WoozyNate
(Nate)
September 28, 2021, 6:06pm
#4
but im trying to save the folder;
i want a way to go through every folder in the “Inventory”, and save all off the values inside of that folder
You’re going to want to use a Datastore to save things, there are many tutorials on how to use them.
If you don’t want to make your own I recommend @loleris ’s ProfileService as I’ve used it many times and like it a lot.
Mystxry12
(Mystxry)
September 29, 2021, 1:59am
#6
Then try using datastores. Devking has a good tut on it and u can also reference the api page.Make sure you enable studio acess to api services.