How would i script a script so that once i say "Donate 2" in the normal chat then a developer product would show up on the player who said it so they can buy it?
COMMUNITY QUESTION
chat Donate 2 to get a developer product popup?
1 answer
id = 123456789 --Id of product
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "Donate 2" then
game:GetService("MarketplaceService"):PromtProductPurchase(player, id)
end
end)
end)
1 comment
0
yes @rkdss i have tried these before but it just says 16:23:08.145 PromtProductPurchase is not a valid member of MarketplaceService "MarketplaceService" - Server - Script:5
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You can use the 'Chatted' Event of Player in pair with 'PromptProductPurchase' of MarketplaceService.
@Ziffixture could you make a example script for me as I have made many but none of these work.