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

Which two to use in scripting in-game currency?

Asked by 7 years ago

I want to make a currency in my game. Should I use DataStoreService or should I use MarketPlaceService? I heard that MarketPlaceService is outdated and should not be used, but I do not see it crossed out on the roblox wiki. I know that DataStoreService can save your data in the game, but I don't know how it can hold a currency in the game. By currency I mean things like gold or money, also you can buy it from in-game store with using robux. I just need help to know which to use, thanks!

1 answer

Log in to vote
4
Answered by 7 years ago
Edited 7 years ago

These two services do completely different things, MarketPlaceService is used for purchasing and reading information from products in the ROBLOX catalog and library. MarketPlaceService is also fine to use unlike what you said. DataStoreService does do what you said, it can save and load data. You could use the two together, MarketPlaceService to sell developer products so players can buy your currency, and DataStoreService to save and load the user's currency over sessions!

For actually creating the currency, make a leaderstat. If you don't know how to already, I'd suggest that's where you should start. Don't worry about DataStores until you're scripting knowledge is a bit more advanced.

Search the wiki or for tutorials on how to use them, or give it a go yourself and the community here can help with any problems you may have!

Ad

Answer this question