I’m using import service to import an accessory from the roblox catalog. The only issue is that when an object is imported, it is imported to a model. I want to remove the accessory from the model so I can use the accessory. I cannot
:FindFirstChild("Name") because I will be importing different items.
Here is my current importing script:
local model = game:GetService("InsertService"):LoadAsset(31101391) model.Parent = game.Workspace model:MoveTo(Vector3.new(-460.829, 95.253, -277.969)) model:WaitForChild("Handle").Anchored = true
The structure of an imported item
Things I’ve tried (none of them worked):
local accessory = model:GetChildren()
local accessory = model:FindFirstChild()
local accessory = model:FindFirstChildWhichIsA("Accessory")
accessory.Parent = game.Workspace to the end of all these attempts)
Does anyone have any ideas?