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 » Scripters
Home Search
 

Re: NEED HELP WITH DEVELOPER PRODUCTS

Previous Thread :: Next Thread 
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
19 Nov 2015 07:41 PM
why wont my cash giver developer product work in berezaa tycoon? It lets me purchase it but it wont give me cash! PLZ HELP THX!
Report Abuse
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
19 Nov 2015 08:24 PM
Anyone?
Report Abuse
TheBuilderGames is not online. TheBuilderGames
Joined: 28 Mar 2013
Total Posts: 211
19 Nov 2015 08:35 PM
Post the script in a reply I would like to see the script your using.
Report Abuse
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
19 Nov 2015 08:44 PM
Here is the Scripts

This is the Local Script in the GUI Image Button:

local productId = 19905120 --Change this to your developer product ID!!
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

And here is the Script that Goes in the the Player STarterpack:


local MarketplaceService = Game:GetService("MarketplaceService")
local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")

CASHID = 19905120 -- Put the Developer Product ID here

MarketplaceService.ProcessReceipt = function(receiptInfo)
local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_product_" .. receiptInfo.ProductId
local numberBought = ds:IncrementAsync(playerProductKey, 1)
for i,v in pairs (game.Players:GetChildren()) do
if v.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == CASHID then


lds = v:FindFirstChild("leaderstats")
if lds ~= nil then
cs = lds:FindFirstChild("Cash") --Change to your leaderstat
if cs ~= nil then
cs.Value = cs.Value +500 --Change to the amount you want this to add
end
end
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
Report Abuse
Dogejia is not online. Dogejia
Joined: 08 Feb 2012
Total Posts: 1873
19 Nov 2015 08:46 PM
maybe because you're nbc? idk really


Dogemon, gotta pet them all!
Report Abuse
TheBuilderGames is not online. TheBuilderGames
Joined: 28 Mar 2013
Total Posts: 211
19 Nov 2015 08:48 PM
Is this the Lumber Tycoon by berezaa?
Report Abuse
TheBuilderGames is not online. TheBuilderGames
Joined: 28 Mar 2013
Total Posts: 211
19 Nov 2015 08:48 PM
If it is go to "ServerScriptService" and double click the script "DevProductHandler" and put in your Products there.
Report Abuse
pikachuisepiclol is not online. pikachuisepiclol
Joined: 08 Oct 2012
Total Posts: 5
19 Nov 2015 09:35 PM
Can i get some help with my Gamepass script? I want to add a Gamepass that will give 20+ Walk Speed but i cant get the scripting right.
Report Abuse
mircostaff is online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
19 Nov 2015 09:40 PM
just add 20 to the Humanoid WalkSpeed Value on purchase, but make a safe check to make sure it can't go over a certain amount. Very simple.
Report Abuse
TheBuilderGames is not online. TheBuilderGames
Joined: 28 Mar 2013
Total Posts: 211
20 Nov 2015 04:36 PM
elseif productId == 21583211 then
productName = "+5 Walkspeed"
local char = player.Character
if char then
local human = char:FindFirstChild("Humanoid")
if human then
human.WalkSpeed = human.WalkSpeed + 5
end
end
Report Abuse
Bylocks is online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
20 Nov 2015 08:33 PM
None of these work anyone plz help?!?
Report Abuse
TheBuilderGames is not online. TheBuilderGames
Joined: 28 Mar 2013
Total Posts: 211
21 Nov 2015 12:18 AM
If it is go to "ServerScriptService" and double click the script "DevProductHandler" and put in your Products there.

/\ this works
Report Abuse
pikachuisepiclol is not online. pikachuisepiclol
Joined: 08 Oct 2012
Total Posts: 5
25 Nov 2015 08:06 PM
Can you simplify it a little more? I don't really understand what to do...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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