How to delete all ThreeDTextObjects

I need an script for Command bar to delete all of these please.
image

for _,v in pairs(workspace:GetDescendants() do
    if v.Name == "ThreeDTextObject" then v:Destroy() end
end
--this is very expensive, but I assumed you want to use it once
for i, service in pairs(game:GetChildren()) do 
	pcall(function()
		for i, v in pairs(service:GetDescendants()) do 
			if v:IsA("Model") and v.Name == "ThreeDTextObjects" then 
				v:Destroy() 
				task.wait()
			end
		end
	end)
	task.wait()
end

No need to loop through everything, a ThreeDTextObject would not be in the Chat service, lol. You can just look through workspace or ServerStorage.

They talked about Command bar, which means it’s probably some kind of free model virus or an unwanted game object, it may exist in multiple “hidden” locations as a backup for example CoreGui(if it’s managed by a plugin).

1 Like

It’s not an Virus, haha.
If it was I would have stated that.

Alright, then as @CommanderRanking said you can just loop through workspace(asumming it only exists there).

--this is very expensive, but I assumed you want to use it once
for i, child in pairs(workspace:GetDescendants()) do 
	if child:IsA("Model") and child.Name == "ThreeDTextObjects" then 
		child:Destroy() 
		task.wait()
	end
end