01 | local this = script.Parent |
02 | local amount = this.Amount |
03 | local plr = game.Players.LocalPlayer |
04 | local marketserv = game:GetService( "MarketplaceService" ) |
05 |
06 |
07 | this.Activated:connect( function () |
08 | print (plr.Name) |
09 | game:GetService( "MarketplaceService" ):PromptPurchase(plr, 269009354 ) |
10 | end ) |
01 | local this = script.Parent |
02 | local amount = this.Amount |
03 | local plr = game.Players.LocalPlayer |
04 | local marketserv = game:GetService( "MarketplaceService" ) |
05 |
06 |
07 | this.Activated:connect( function () |
08 | print (plr.Name) |
09 | game:GetService( "MarketplaceService" ):PromptProductPurchase(plr, 269009354 ) |
10 | end ) |
I'm upgrading to Windows 10 right now, when it's done I will see if it works. It should work anyway. PromptPurchase is for anything thats not a Dev Product or Gamepass.