#prompt

22 messages · Page 1 of 1 (latest)

covert briar
#

any errors ?

noble storm
covert briar
#

you reversed the order

#

function(player, gamepassId, isPurchased)

#

no function(player, purchased, productId)

noble storm
#

oh wait

#

it still doesn't let me pass through??

#

local prompt = script.Parent
local door = game.Workspace.Door
local marketplace = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local productID = 1891130826

prompt.Triggered:Connect(function(player)
marketplace:PromptProductPurchase(player, productID)
end)

marketplace.PromptProductPurchaseFinished:Connect(function(player, productID, isPurchased)
if purchased and productId == productID then
door.CanCollide = false
wait(2)
door.CanCollide = true
end
end)

covert briar
#

tell me if it prints

#
local prompt = script.Parent
local door = game.Workspace.Door
local marketplace = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local productID = 1891130826 

prompt.Triggered:Connect(function(player)
    marketplace:PromptProductPurchase(player, productID)
end)

marketplace.PromptProductPurchaseFinished:Connect(function(player, productID, isPurchased)
    print("its printing !")
    if purchased and productId == productID then
        door.CanCollide = false
    end
end)
#

try that

noble storm
covert briar
#
local prompt = script.Parent
local door = game.Workspace.Door
local marketplace = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local productID = 1891130826 

prompt.Triggered:Connect(function(player)
    marketplace:PromptProductPurchase(player, productID)
end)

marketplace.PromptProductPurchaseFinished:Connect(function(player, productID, isPurchased)
    if purchased and productId == productID then
        print("its still printing !")
        door.CanCollide = false
    end
end)
#

and tell me if it prints again

spring geyser
#

PromptProductPurchaseFinished is so easy to exploit tho

#

.ProccessReceipt is perfect for handling the products

noble storm
#

it doesnt print

noble storm
#

thanks