Appearance
K.Shop
Functions
K.Shop.GamePass
lua
K.Shop.GamePass(name: string, id: number, options: { [string]: any }?)A game pass. Benefits last as long as the player owns it. Options: Multiply ({ Coins = 2 }), Stats ({ Damage = { Multiply = 1.25 } }), OnOwned(player).
K.Shop.Product
lua
K.Shop.Product(name: string, id: number, options: { [string]: any })A developer product that can be bought again and again. Give it exactly one of: Reward (a reward bundle), Boost + Minutes, or OnPurchase(player, receipt) returning true once it has given the purchase (save what it gives in the player's data).
K.Shop.Boost
lua
K.Shop.Boost(name: string, options: { [string]: any })A timed boost, given by a product (Boost + Minutes) or K.Shop.GiveBoost. Options: Multiply, Stats.
K.Shop.Subscription
lua
K.Shop.Subscription(name: string, id: string, options: { [string]: any }?)A Roblox subscription (id like "EXP-1234567890"). Benefits last while subscribed. Options: Multiply, Stats, OnOwned(player), OnLost(player).
K.Shop.Premium
lua
K.Shop.Premium(options: { [string]: any })Benefits for Roblox Premium members. Its shop name is "Premium". Options: Multiply, Stats, OnOwned(player), OnLost(player).
K.Shop.Owns
lua
K.Shop.Owns(...: any): booleanServer: Owns(player, name). Client: Owns(name) for yourself. True for owned passes, active subscriptions, Premium members and running boosts.
K.Shop.OnOwned
lua
K.Shop.OnOwned(name: string, callback: (boolean) -> ())Client: runs callback(owns) now and whenever you gain or lose name.
K.Shop.BoostTimeLeft
lua
K.Shop.BoostTimeLeft(...: any): numberSeconds a boost has left (0 when it isn't running). Server: BoostTimeLeft(player, name).
K.Shop.GiveBoost
lua
K.Shop.GiveBoost(player: Player, name: string, minutes: number): booleanServer: gives a player minutes of a boost (adding to any time left).
K.Shop.Prompt
lua
K.Shop.Prompt(...: any)Opens Roblox's purchase window. Server: Prompt(player, name). Client: Prompt(name).
K.Shop.Price
lua
K.Shop.Price(name: string): number?The price in Robux of a pass or product (nil if Roblox can't be reached). Waits the first time.
K.Shop.Exists
lua
K.Shop.Exists(name: string): booleanK.Shop.Names
lua
K.Shop.Names(): { string }Events
K.Shop.Purchased
Server: fires with (player, name, kind) after a successful purchase.
Generated from
src/Corode/Shop.luau.
