Nexus Integrations / Roblox
Connect Roblox to your Nexus store.
Use the Nexus Roblox server module to load products, check ownership and record purchases from trusted Roblox server code.
1. Set up the server module
Install the Nexus module in ServerScriptService or ServerStorage. Turn on Roblox HttpService, then create the client from a server-only Script.
local Nexus = require(script.Parent.Nexus)
local nexus = Nexus.new(
"store_your_id",
"sk_live_your_server_key",
"https://api.gpirblx.com"
)Never put the API key in a LocalScript or send it to a player. The key belongs only in trusted server code.
2. Load the catalogue
Ask Nexus for the published products or for the catalogue belonging to one Roblox user. The player catalogue includes whether each product is already owned.
local catalogue = nexus:GetPlayerCatalogue(player.UserId)
for _, product in ipairs(catalogue.products) do
print(product.name, product.owned)
end3. Handle purchases safely
- Wait for Roblox to confirm the receipt.Only trusted server code should decide whether a purchase is valid.
- Send the purchase to Nexus.Include the Roblox user ID, Nexus product ID and Roblox purchase ID.
- Deliver the product.Grant the item in Roblox, then confirm delivery so the purchase cannot be delivered twice.