Hi, I have been trying to upload dev products and whenever I upload them, it says something about the image failing to load.
That also happens when I try to update the image.
Also, when I try to do getProductInfo() on these “glitched” dev products it will say these errors:
This is my code in local script:
local ProductInfo = mps:GetProductInfo(clone.Paid.PassID.Value,Enum.InfoType.Product)
price.Amount.Text = tostring(ProductInfo.PriceInRobux)
rshop.Tab.Main.Buy.MouseButton1Click:Connect(function()
if Rselected ~= nil then
print(Rselected)
mps:PromptPurchase(game.Players.LocalPlayer,PassID)
local bought = game:GetService("ReplicatedStorage").Remotes.Gamepass:InvokeServer(Rselected.Name)
end
end)
This is my code in server script:
local mps = game:GetService("MarketplaceService")
game:GetService("ReplicatedStorage").Remotes.Gamepass.OnServerInvoke = function(plr,selected)
local val = game:GetService("ReplicatedStorage").Items:FindFirstChild(selected)
local ProductInfo = mps:GetProductInfo(val.Paid.PassID.Value,Enum.InfoType.GamePass)
mps.ProcessReceipt = function(recipientInfo)
if plr == game.Players:GetPlayerByUserId(recipientInfo.PlayerId) then
if recipientInfo.ProductId == val.Paid.PassID.Value then
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
end
end
- note that these scripts aren’t finished, I was just testing for bugs and I found bugs so now I’m reporting
Thanks for reading this, any help would be much appreciated.
EDIT: Gamepasses also don’t work. And it says this item is not currently for sale when I try to buy it.