Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Saving a folder using data store?

Asked by 3 years ago

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.

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 ShadowDinoYT 11 — 3y

1 answer

Log in to vote
-1
Answered by 3 years ago

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

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? ShadowDinoYT 11 — 3y
Ad

Answer this question