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

How to make a shop gui that saves weapons you buy permanently?

Asked by 7 years ago

Hi, I've been making a shop gui that sells a variety of weapons for different prices. I want to make it so that the weapons you buy will save even when you get off the game, you could select to use it, so you won't have to buy them again.

The thing is, I don't know how to script this, I've searched everywhere for an answer but I can't find any help. Is there a way I can make this gui work how I want to?

0
Similar to the guis in murder mystery 2, zombie rush, ones that can save like that. NINGASAMURI 0 — 7y
1
Datastores are your answer. Use Roblox datastores. JasonTheOwner 391 — 7y
0
I mean for example, if you buy a weapon, you can still buy it again. Is there a way to make an "unlock" script so you can select it without purchasing it again? I dont want it to save to your inventory, but thanks that does help me out. NINGASAMURI 0 — 7y

1 answer

Log in to vote
0
Answered by
Nogalo 148
7 years ago

If you want players to only have to buy something once and then whenever they re enter the game they have it in their inventory i suggest using Gamepasses, your players won't even have to select them agian, the Gamepass script will check if they own the gamepass and then if they do add the corresponding item to their inventory upon entering the game.

0
Yes, similar to that, but is there a way for it to save to the shop gui instead of your inventory? HERES A PICTURE: https://www.roblox.com/library/708759414/Screenshot-2017-03-24-10-35-38 What I mean is once you buy it, it saves permanently so you can add it to your inventory anytime NINGASAMURI 0 — 7y
Ad

Answer this question