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
|
  |
| Joined: 27 Mar 2012 |
| Total Posts: 773 |
|
| |
|
|
| 19 Nov 2015 08:35 PM |
| Post the script in a reply I would like to see the script your using. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 19 Nov 2015 08:48 PM |
| Is this the Lumber Tycoon by berezaa? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Mar 2012 |
| Total Posts: 773 |
|
|
| 20 Nov 2015 08:33 PM |
| None of these work anyone plz help?!? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 25 Nov 2015 08:06 PM |
| Can you simplify it a little more? I don't really understand what to do... |
|
|
| Report Abuse |
|
|