How do i insert accessories without owning them

im trying to make a catalog editor esque thing for creating enemies for a sandbox mode in a TD game, and im getting everything using AvatarEditorService while importing everything using InsertService, problem is, InsertService:LoadAsset() only inserts things that you own (to my knowledge)

how can i still import accessories without owning them?

1 Like

No it allows you to insert anything

That only counts for models and animations. You can insert any accessory from the marketplace
My bad, you can insert anything with InsertService as long as the asset not private

game.InsertService:LoadAsset(7969727356).Parent = workspace

ive been looking up why it hasnt been working and im really confused since avatar editor games do exist.
heres the initial code that runs

local pagesObject = AvatarEditorService:SearchCatalog(catalogSearchParams)
local currentPage = pagesObject:GetCurrentPage()
for i, item in currentPage do
	local NewCosmetic = game.ServerStorage.CosmeticFrame:Clone()
	NewCosmetic.AccessoryName.Text = item["Name"]
	local Success, Model = pcall(InsertService.LoadAsset,InsertService,item["Id"])
	if Success and Model then
		local Accessory = Model:FindFirstChildOfClass("Accessory")
		Accessory:FindFirstChild("Handle").Position = Vector3.new(0,0,-4)
		Accessory.Parent = NewCosmetic
		NewCosmetic.Id.Value = item["Id"]
		NewCosmetic.Parent = SelectionFrame
	end
end

edit: this script attempts to load an accessory (fails) and then puts it into a button the user can press to select the item

do offsale items count as private items?

edit: no idea, and i figured out what was going on (some of the loaded accessories didnt have Handles)

yup they do

character limit

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.