Giftoin Docs
  • 👋INTRODUCTION
    • Welcome to Giftoin
    • Overview
    • Quick Start
    • FAQs
    • Key Features
  • 🧩API REFERENCE
    • Standards and Conventions
    • Orders API
      • Tokens/Points
      • Collectibles/Cards
      • Collectibles/Random Cards
    • Users API
      • Inventory
      • Progress
    • Error Handling
  • 💻PLATFORM GUIDES
    • Roblox
      • Why use Giftoin?
      • Basic Usage
      • Developer Access
      • Installation
      • Additional Example / Use-Cases
        • Point Reward
        • Daily Reward
        • Advanced Point Distribution System
        • Managed Codes & In-Game Rewards (Coming Soon)
          • Registering Reward Types
      • Tools and Scripts
        • Rotating Script
        • Floating Script
        • Quest System (Coming Soon)
    • Discord
      • Introduction
      • Getting Started
      • Command Reference
      • Role System
      • User Guides
      • Troubleshooting
      • FAQs
    • Wordpress
  • 📚Resources
    • Use Cases
      • Basic
      • eCommerce
      • Games
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. PLATFORM GUIDES
  2. Roblox
  3. Additional Example / Use-Cases

Managed Codes & In-Game Rewards (Coming Soon)

Learn how to implement and use Giftoin's advanced code redemption and reward system in your Roblox game.

Welcome to Giftoin's Managed Codes & In-Game Rewards system! This powerful tool allows you to easily implement a secure and flexible code redemption system in your Roblox game.

Key features:

  • Instant implementation with GiftoinModule

  • Secure server-side processing

  • Flexible reward types

  • Customizable UI integration

  • Centralized code management through Giftoin platform

By using our system, you can focus on creating unique gameplay experiences while we handle the complexities of code management and reward distribution.

Register Reward Type

Our module is built in a modular way - allowing all kinds of rewards.

You simply need to register each reward type - name and the function to run to grant the reward to the user.

-- For updating leaderboard stats

local ServerScriptService = game:GetService("ServerScriptService")
local GiftoinModule = require(ServerScriptService:WaitForChild("GiftoinModule"):WaitForChild("init"))
local GiftoinRedemptionSystem = GiftoinModule.Redemption

GiftoinRedemptionSystem.RegisterCallback("points", function(player, amount)
	print("points added")
	local leaderstats = player:FindFirstChild("leaderstats")
	if leaderstats then
		local points = leaderstats:FindFirstChild("Points")
		if points then
			points.Value = points.Value + amount
		end
	else
		print("Player leaderstats are missing")
	end
end)
PreviousAdvanced Point Distribution SystemNextRegistering Reward Types

Was this helpful?

💻