[Tutorial] Shop Maker Pro - Set up In Game Currency

This is a dev forum post that visually walks you through how to update the Shop in Shop Maker Pro to handle In Game Currency

A few more concepts for setting up a Successful Shop

1. Customizing Your Currency (The Leaderboard)

When you launch the plugin, it automatically injects the ShopServerHandler into ServerScriptService. This script handles the Roblox leaderstats system—the standard way to display player stats in the top-right corner of the screen.

To make the shop feel like your own, look at the top of the ShopServerHandler script. You can change CURRENCY_DISPLAY_NAME from “In Game Currency” to something thematic like “Gold,” “Scrap,” or “Mana.” You can also adjust the STARTING_CURRENCY variable to give new players a “welcome gift” so they can make their first purchase immediately.

2. Using Starting Currency for Testing

By default, the script includes a variable called STARTING_CURRENCY set to 1000. This is to speed up the development phase, to allow you to jump into a test session and immediately buy in game currency items to ensure your UI and reward logic are working correctly. But if you don’t want your experience to have players starting off with 1000 in game currency by default…

In ShopServerHandler, simply change local STARTING_CURRENCY = 1000 to local STARTING_CURRENCY = 0.

3. Defining Product IDs and Prices

Unlike Game Passes, In-Game Currency items don’t need a numeric ID from a website. Instead, you use a unique string (a “keyword”) to identify your item.

  1. In the Plugin: Toggle the “In-game currency” option and type any keyword into the ID box (e.g., SpeedBoost_IGC, Super_Strength, etc).

  2. In the Script: Open ShopServerHandler and find the getInGameCurrencyPrice function. This acts as your shop’s price list. Add a new line for your item:

elseif productId == "SpeedBoost_IGC" then return 200

This ensures that when a player clicks “Buy,” the server knows exactly how much to deduct from the player’s IGC balance.

4. Handling the Purchase Reward

Once the server confirms the player has enough currency, it subtracts the cost and triggers the applyProductReward function. The applyProductReward function is how all product-purchases, whether it be from Game Passes, Developer Products, or In Game Currency, are applied to the player. For a speed boost, you would locate this function and add your logic:

if productId == "SpeedBoost_IGC" then
    local character = player.Character
    if character and character:FindFirstChild("Humanoid") then
        character.Humanoid.WalkSpeed = 200 
    end
end

By handling this logic on the server, you prevent exploiters from simply telling the game they have “infinite speed” or “zero cost” items.

5. Security and RemoteEvents

It is important to understand that the “Buy” button on the player’s screen uses a RemoteEvent (specifically BuyItemWithInGameCurrency) to talk to the server. The client (the player’s computer) only sends the Product ID . The server then independently checks the price and the player’s current balance in its own records.

This “Server-Authoritative” model is why your currency name and prices are stored in a Server Script rather than the UI; if the price were stored in the UI, a hacker could change the price to $0 and buy everything in your shop!