How to get rid of "ToolboxTemporaryInsertModel"

Copy this code:

while wait() do
    for i,v in pairs(workspace:GetChildren()) do
        if v:IsA(“Model”) and v.Name == “ToolboxTemporaryInsertModel” then
            v:Destroy()
            print(“yeah! take that!”) – change to any text you want 
        end
    end
end

And paste this into the command bar.

3 Likes

okay but why please?
its seems somehow not needed.

1 Like

I think #resources:community-tutorials would fit better.
This whole code could be replaced with this one line:

workspace:FindFirstChild("ToolboxTemporaryInsertModel"):Destroy()

because it only appears once, and there are no duplicates of it.

2 Likes

The “ToolboxTemporaryInsertModel” Also Happens To Me

1 Like

This is a known bug; occasionally when something is inserted from the toolbox, this model appears in the workspace.

1 Like

What does this model look like?

An empty model named ‘ToolboxTemporaryInsertModel’.

2 Likes

I used ‘for i’ to count the ‘ToolboxTemporaryInsertModel’ to delete it.

it automatically deletes it when I used ‘for i’.

‘for i’ is used for counting something or idk.

You shouldn’t need to do this at all, apparently there has been a bug filed about this issue and it has been fixed multiple times.

thanks for the suggestions, the bug is already fixed