of     1   

Randy_Moss
#225789989Saturday, September 30, 2017 8:08 PM GMT

It is suppose to give the player the gear inside server storage when they buy the dev product -- setup local variables local MarketplaceService = Game:GetService("MarketplaceService") local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory") local productId = filterednumber local nutritionbar = game.ServerStorage.NutritionBar game.Players.PlayerAdded:connect(function() print("start") local DeveloperProducts = game:GetService("MarketplaceService"):GetDeveloperProductsAsync():GetCurrentPage() for _, DevProductContainer in pairs(DeveloperProducts) do for Field, Value in pairs(DevProductContainer) do print(Field .. ": " .. Value) end print(" ") end print("end") end) -- define function that will be called when purchase finished MarketplaceService.ProcessReceipt = function(receiptInfo) -- find the player based on the PlayerId in receiptInfo for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then -- check which product was purchased if receiptInfo.ProductId == productId then -- handle purchase local boughtbar = nutritionbar:Clone() boughtbar = player.Backpack -- more feedback for the player. end end end -- record the transaction in a Data Store local playerProductKey = "p_" .. receiptInfo.PlayerId .. "_p_" .. receiptInfo.PurchaseId ds:IncrementAsync(playerProductKey, 1) -- tell ROBLOX that we have successfully handled the transaction return Enum.ProductPurchaseDecision.PurchaseGranted end
Randy_Moss
#225790197Saturday, September 30, 2017 8:13 PM GMT

its done in a server script btw the local script is popping up of the dev product
twinqle
#225790292Saturday, September 30, 2017 8:15 PM GMT

i have not studied ######### receipts yet you've been twinqled
Randy_Moss
#225790311Saturday, September 30, 2017 8:15 PM GMT

?
twinqle
#225790338Saturday, September 30, 2017 8:16 PM GMT

in other words i cant help so my post was irrelevant you've been twinqled
Randy_Moss
#225790443Saturday, September 30, 2017 8:18 PM GMT

k
dqxs
#225790561Saturday, September 30, 2017 8:21 PM GMT

Why don't you make it simplier?
nixpc
#225790730Saturday, September 30, 2017 8:25 PM GMT

"local nutritionbar = game.ServerStorage.NutritionBar" Another ROBLOX Gym clone?
Randy_Moss
#225790811Saturday, September 30, 2017 8:27 PM GMT

nooooooooooooo not a gym
nixpc
#225790831Saturday, September 30, 2017 8:27 PM GMT

What then?
Randy_Moss
#225790879Saturday, September 30, 2017 8:28 PM GMT

check message
ExplodeLikeAVolcano
#225791247Saturday, September 30, 2017 8:37 PM GMT

Use ReplicatedStorage
Randy_Moss
#225791508Saturday, September 30, 2017 8:43 PM GMT

Didnt work
ExplodeLikeAVolcano
#225791580Saturday, September 30, 2017 8:45 PM GMT

Clone it into startergear
twinqle
#225791677Saturday, September 30, 2017 8:46 PM GMT

oh i know the problem it is beacuz you disd not sadelete the sscript. you've been twinqled
Randy_Moss
#225793340Saturday, September 30, 2017 9:23 PM GMT

explode I dont want them to keep it tho when they reset
Randy_Moss
#225793444Saturday, September 30, 2017 9:25 PM GMT

what twin?
Randy_Moss
#225795846Saturday, September 30, 2017 10:25 PM GMT

b
InedibleGames
#225796589Saturday, September 30, 2017 10:42 PM GMT

local boughtbar = nutritionbar:Clone() boughtbar.Parent = player.Backpack You were setting boughtbar to the players backpack, not setting the parent of boughtbar to the backpack
Randy_Moss
#225796663Saturday, September 30, 2017 10:44 PM GMT

THANK YOU!

    of     1