of     1   

SimplyRemove
#142766973Wednesday, August 06, 2014 9:36 AM GMT

A script I made to buy in-game currency isn't working. I'm sure I put in the correct ID, but the 'are you sure you want to buy this' window won't open.. This is the script: local buyButton = script.Parent local productId = 20801945 --change to dev product id local mps = game:GetService"MarketplaceService" function getPlayerById(id) for i,v in pairs(game.Players:GetPlayers()) do if v.userId == id then return v end end end buyButton.MouseButton1Click:connect(function() mps:PromptProductPurchase(game.Players.LocalPlayer, productId) end) mps.ProcessReceipt = function(info) local plr = getPlayerById(info.PlayerId) if plr and plr:FindFirstChild"leaderstats" and plr.leaderstats:FindFirstChild"Credits" then plr.leaderstats.Points.Value = plr.leaderstats.Credits.Value + 50 end end
SimplyRemove
#142770559Wednesday, August 06, 2014 11:10 AM GMT

Bump! Please help
SimplyRemove
#142800253Wednesday, August 06, 2014 6:49 PM GMT

bump
SimplyRemove
#142800964Wednesday, August 06, 2014 6:57 PM GMT

bump qq
SimplyRemove
#142869322Thursday, August 07, 2014 9:00 AM GMT

bump.. :(
SimplyRemove
#142976185Friday, August 08, 2014 11:52 AM GMT

qqqqqqqqqqqqqqqqqqqqqqqqqq
SimplyRemove
#144245306Friday, August 22, 2014 7:42 PM GMT

bump
Dankvisky
#144248629Friday, August 22, 2014 8:08 PM GMT

For dev products i take 2 scripts, 1 for showing up the thing to buy it and other to activitate when product bought, you are asking for think to show up so i will give a script from my game: For dev products, btw make it a LocalScript: local productId = 20973264 --My developer product ID local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId) end) For gamepasses, also make it a LocalScript: local id = 170502775 -- My Gamepass ID local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() if script.Parent.Text == "BUY" then game:GetService("MarketplaceService"):PromptPurchase(player,id) end end)

    of     1