so im trying to sell my ugc in my game and when i test it in studio it works perfectly but when i try it out on an actual server i get this weird error saying
“Your purchase of (my item name) failed because something went wrong. Your account has not been charged. Please try again again later”
and i cant debug it:
script:
local Set = require(game.Workspace.Settings)
local gamepass = Set.UGCItemID
local player = game.Players.LocalPlayer
local click = script.Parent
click.MouseButton1Click:Connect(function()
script.Parent.Click:Play()
game:GetService("MarketplaceService"):PromptPurchase(player,gamepass)
script.Parent.Parent.Parent.Enabled = false
end)