local script:
local MarketplaceService = game:GetService("MarketplaceService")
local bot = script.Parent.Parent.Parent.Parent
local dialog = script.Parent
dialog.DialogChoiceSelected:Connect(function(player, choice)
if choice == dialog.No then
task.delay(0.1, function()
dialog:Destroy()
end)
elseif choice == dialog.Yes then
player:SetAttribute("AnswerNPC", bot:GetFullName())
MarketplaceService:PromptProductPurchase(game.Players.LocalPlayer, 2816056930)
end
end)```
it wont prompt