Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Saving a folder using data store?

I want to make a folder in workspace with at least 10 bool values in it, is there a way i can save/load the values so they can always stay the same when you leave or join. If so please help me out.

2 comments

0

And to elaborate, I wanna make a shop with things in it that you buy and then the stuff purchased will save. And the only way I thought to do that was make bool values and name them the name of the item in shop and when you purchase it the value turns true

1 answer

Try Putting the folder into the player by using instances example:

game.Players.PlayerAdded:Connect(function(Player)
local folder = Instance.new("Folder",plr)
folder.Name = "" --Put the Folder Name Here

local bool = Instance.new("IntValue",folder)
bool.Name = "" -- Put the name of the bool here
end)

repeat the bool part 10 times or you can use a table to clean things up

Example is on this link (https://pastebin.com/S4Z2uYVF) Note that I do not own this Pastebin Script

1 comment

0

How do I add the bool value where it says to add it to i just write, player.Folder.BoolValue.Value in that script on pastebin?

This discussion is preserved as it was. New answers, comments, and votes are closed.