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

How do I create a limited number of items using http?

Asked by 2 years ago

Hi developers! I'm working on a game where players will be able to buy limited items. Let's say there are 100 items and a player bought one item and then 99 more times players can buy this item. I think you get the idea. But how to do it? I was thinking of doing it with http , creating a database on a third party host. Can you help me with this?

0
You don't have to use a 3rd party database, you can just use roblox's built in datastore https://developer.roblox.com/en-us/articles/Data-store and you can do it like PlayerName|Number of items left, and use string.split to split it and when they buy one it deducts it by one and if its below 0 then you can just make it not go through. preston1196 82 — 2y

Answer this question