Hello my import plugin script does work but when I try to import items that is on sale but not in my inventory, I get this:
Output (2 tries)
13:04:37.511 - DataModel Loading https://assetdelivery.roblox.com/v1/asset/?id=95206881
13:05:16.656 - HTTP 403 (Forbidden)
13:05:16.696 - Stack Begin
13:05:16.697 - Script 'cloud_5501758978.Catalog Item Importer.Script', Line 20
13:05:16.697 - Stack End
13:05:18.782 - Bad Request
13:05:18.782 - Stack Begin
13:05:18.783 - Script 'cloud_5501758978.Catalog Item Importer.Script', Line 20
13:05:18.783 - Stack End
Script
local toolbar = plugin:CreateToolbar("Catalog Item Importer")
local CatalogImporterButton = toolbar:CreateButton("Catalog Item Importer", "Catalog Item Importer", "")
local gui = script.Parent.CatalogItemImporterGui
local isOn = false
CatalogImporterButton.Click:Connect(function()
isOn = not isOn
gui.Parent = game.CoreGui
gui.Enabled = isOn
end)
gui.Frame.TextButton.MouseButton1Click:Connect(function()
local asset = gui.Frame.TextBox.Text
game:GetService("InsertService"):LoadAsset(asset).Parent = game.Workspace
end)