Faczki
(Faczki)
December 15, 2020, 1:02am
#1
Hey, i need to make a shop for my game, but i don’t know how to make stuff save, can anyone help me out?
Basically, i am making a shop where you can buy Tool Skins, Death Effects and Abilities, but i don’t know how to make them save, can anyone help me please?
stqrrydev
(stqrrydev)
December 15, 2020, 1:05am
#2
You can use a data store tutorial, and just make more values parented to leaderstats.
Faczki
(Faczki)
December 15, 2020, 1:10am
#3
That doesn’t help me a lot, you just said what i need to do and now how.
stqrrydev
(stqrrydev)
December 15, 2020, 1:13am
#4
Sorry, it says in the rules you can’t write whole scripts for people
All I can do is tell you how to go about it.
1 Like
Faczki
(Faczki)
December 15, 2020, 1:13am
#5
Yeah i wasn’t asking for a full script, just how i can do the stuff you said.
stqrrydev
(stqrrydev)
December 15, 2020, 1:16am
#6
Just repeat making values, then as well as the main one save the other values too.
Faczki
(Faczki)
December 15, 2020, 1:18am
#7
So do i just make a normal datastore leaderboard and make a value for each item?
But making that i would have to use BoolValues because i can’t use a numer/int value for true or false
1 Like
stqrrydev
(stqrrydev)
December 15, 2020, 1:20am
#8
Faczki
(Faczki)
December 15, 2020, 1:21am
#9
I don’t have much problem doing the datastore itself, i just need to know how to make the shop part, as i don’t know how to save the values, should i use boolvalues then?
You should do some research and look into previously asked questions similar to yours. There are a lot of available resources such as tutorials, devforum, etc. that you can utilise.
Here’s a tutorial by Incapaz which should help.
In this tutorial, I will show you how to save player’s inventory items.
Setup
The way I do it with storing tools, is having a folder in ServerStorage named Tools, and all my tools would go there.
[image]
A second folder would be a folder containing sub-folders, which would contain each players’ inventory.
Example of hierarchy:
[image]
The Inventories folder would start out empty, but a folder with the name of the player who joins will be created, and the tools they have will be put in the…
Furthermore,
Introduction
I have made a quick tutorial on your requested topic, so here we go!
The Gui
The first thing you will need is the gui, I have made a placeholder gui just for the sake of the tutorial and organized it in the workspace like this.
[image]
Coding
So first thing first just add a localscript into the gui and give it a name, in my case I named it “Main” and make a folder in ReplicatedStorage and name it Tools and add the tools to the folder. Now just add this code that I wrote to…