generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Displaying gui?

Previous Thread :: Next Thread 
jjwood1600 is online. jjwood1600
Joined: 14 May 2013
Total Posts: 1633
17 Sep 2015 02:21 PM
Hi guys!
I have this dev product.
It lets me purchase it and it takes my money but doesn't display the gui or change the value :(
I have been trying to fix this for the past week and I still cant get it to work :(
Any ideas?
Thanks!

Script in button in the Workspace:
local MarketplaceService = game:GetService("MarketplaceService")
local productId = 19750967
MarketplaceService.ProcessReceipt = function(receiptInfo)

1
2
3
4
5
6
7
8
9
10
11
12
13for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then

if receiptInfo.ProductId == productId then

player.PlayerGui.ChoosingMap.Frame.Visible = true
game.Workspace.ChooseMap.Value = true

end
end
end

return Enum.ProductPurchaseDecision.PurchaseGranted

end


localscript in the starterpack:
local buyButton = game.Workspace.Choosemapbutton.SurfaceGui.TextButton
local productId = 19750967

buyButton.MouseButton1Click:connect(function()
1
2game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)
Report Abuse
jjwood1600 is online. jjwood1600
Joined: 14 May 2013
Total Posts: 1633
17 Sep 2015 02:36 PM
Sorry, its this:

Script in button in the Workspace:
local MarketplaceService = game:GetService("MarketplaceService")
local productId = 19750967
MarketplaceService.ProcessReceipt = function(receiptInfo)

for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then

if receiptInfo.ProductId == productId then

player.PlayerGui.ChoosingMap.Frame.Visible = true
game.Workspace.ChooseMap.Value = true

end
end
end

return Enum.ProductPurchaseDecision.PurchaseGranted

end


localscript in the starterpack:
local buyButton = game.Workspace.Choosemapbutton.SurfaceGui.TextButton
local productId = 19750967

buyButton.MouseButton1Click:connect(function()

game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)
Report Abuse
jjwood1600 is online. jjwood1600
Joined: 14 May 2013
Total Posts: 1633
17 Sep 2015 03:20 PM
Bump! :/
Report Abuse
jjwood1600 is online. jjwood1600
Joined: 14 May 2013
Total Posts: 1633
20 Sep 2015 03:00 PM
Anyone? :(
Report Abuse
jjwood1600 is online. jjwood1600
Joined: 14 May 2013
Total Posts: 1633
21 Sep 2015 09:27 AM
BUMP! :/
Report Abuse
therealviklo is not online. therealviklo
Joined: 09 Sep 2014
Total Posts: 25
21 Sep 2015 11:19 AM
I think you should post this in scripting. also I don't know how to fix it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image