Okay so I have this game and I want to have some developer products. The problem is that I dont know the script. Like how do I make it purchasable in game. I dont know how to make a gui and I dont know how to give them player points for winning the game. Could someone help me with the script on how to make developer products purchasable ingame and how to give out player points or a product to buy player points if that is necessary.
Well, I recently posted my question. I'm sure as soon as I get an answer I can help completely.
I believe they can be called as a MarketplaceService. Perhaps look at that further on the wiki... I have yet to start working with Dev Products though.
Developer Products can be quite confusing at some points... So please be careful.
To make a Dev Product, use the Roblox Wiki that is found [here].(http://http://wiki.roblox.com/index.php?title=Products#Creating_developer_products)
You can also take a look at this sample place...
--[[ WHAT YOU NEED: In the workspace, make a brick called BuyButton In the brick insert a SurfaceGui and name it SurfaceGui In the Gui, insert a TextButton and name it TextButton In line 4, edit the number to your ID INSERT THIS SCRIPT INTO A LOCALSCRIPT IN THE STARTERPACK Line 6+7: Change Diamonds with the stat you want to reward Line 7: Change 10 with the amount you want to give ]] while true do local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton buyButton.MouseButton1Click:connect(function() local productId = 19251902 Game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) game.Players.LocalPlayer.leaderstats.Diamonds.Value = game.Players.LocalPlayer.leaderboard.Diamonds.Value + 10 end) end --Hope this helped! Player Points will not work in a localscript. I am trying to solve this issue. I will PM you the solution.