Soo when i buy the developer product sometimes it doesn’t spawn the model.
script
local MPS = game:GetService("MarketplaceService")
local goldenbox1 = game.ServerStorage:FindFirstChild("GoldenBox1")
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == 1095577134 then
goldenbox1:Clone().Parent = game.Workspace
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
If the parents changing to ServerStorage in another script then it may be that the script is running faster than when the parent is set to ServerStorage. Also what are both of these scripts, server right?
Ohh, then. Maybe goldenbox1 didn’t exist at the defining point. Soo…
local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == 1095577134 then
local goldenbox1 = game.ServerStorage:FindFirstChild("GoldenBox1")
goldenbox1:Clone().Parent = game.Workspace
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end