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.
COMMUNITY QUESTION
Saving a folder using data store?
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.

2 comments
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
https://developer.roblox.com/en-us/api-reference/class/DataStoreService