Skip to main content

πŸ”‘ PsuedoPasses

Gamepasses in the form of developer products.

Setup​

new​

Makes a new "gamepass"

local Framework = require(path).GetServer()
local Passes = Framework.PsuedoPasses

local newPass = Passes.new("10x Luck", 234934) -- name, product ID

UserOwns​

Checks if the user owns the pass

newPass:UserOwns(player)

PromptPurchase​

Prompts the purchase for the pass

newPass:PromptPurchase(player)

Give​

Gives the player the pass

newPass:Give(player)

Get​

Returns the pass metatable

Passes.Get("10x Luck")

PromptPass​

Prompts the purchase for a pass

Passes.PromptPass(player, "10x Luck")

UserOwnsPass​

Passes.UserOwnsPass(player, "10x Luck")