#developer product not working

1 messages · Page 1 of 1 (latest)

vernal cloud
#

so when my avatar touches a part, a developer product is supossed to pop up for me to buy, but it doesnt work, the same script works for my gamepasses tho..

#

the script :

local part = script.Parent
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")

local gamePassID = 3562278603

-- Function to prompt purchase
local function promptGamePass(player)
MarketplaceService:PromptGamePassPurchase(player, gamePassID)
end

-- Detect touch
part.Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
promptGamePass(player)
end
end)

#

? @fringe crescent

#

fixed

bronze night