Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

chat Donate 2 to get a developer product popup?

Asked by 3 years ago

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?

1
You can use the 'Chatted' Event of Player in pair with 'PromptProductPurchase' of MarketplaceService. Ziffixture 6913 — 3y
0
@Ziffixture could you make a example script for me as I have made many but none of these work. UNIMAKZIN00 41 — 3y

1 answer

Log in to vote
0
Answered by
rkdss 25
3 years ago
Edited 3 years ago
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)
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 UNIMAKZIN00 41 — 3y
Ad

Answer this question