I got everything sorted out except from giving the Player the gear when he purchase the Dev Product. So Basically the script is suppose to give player the gear if they buy the Developer Product. But it doesn't seems to be giving the Player the gear when they buy it can anyone tell me what wrong with this?
local plr = script.Parent.Parent.Parent.Parent.Parent local link = game:GetService("MarketplaceService") deb = 0 script.Parent.MouseButton1Click:connect(function() local marketId = 21055716 --Here Developer Product ID link:PromptProductPurchase(plr,marketId) link.ProcessReceipt = function(receiptInfo) if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then if deb == 0 then deb = 1 local c = game.Lighting.DualVenomshank:Clone()--Here where I'm clonning which is in workspace c.Parent = game.Lighting--This put the clone into the Lighting local give = game.Lighting:FindFirstChild("DualVenomshank")--Here where the script search for "DaulVenomshank" give.Parent = game.StarterPack--Here it where it post to give the Player Who bought the "Dev Product" the gear wait(1) deb = 0 end end end end)
Please look at http://wiki.roblox.com/index.php?title=Developer_product and http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/ProcessReceipt and reply if you can not figure it out from there.
As for giving it to the player, assuming plr is the Player and c is a clone of the item then you would do this
c.Parent = plr.Backpack