Hi, I was wondering if there was a fast way to delete textures within parts quickly? I built a place with textured blocks, and I think that is causing some lag. To reduce it I want to remove them all, but it will be very time consuming to manually remove all the textures.
Thanks!
Right click Part > Select Children > Press Delete Key
Script way (Delete all textures on parts in Workspace)
for _, object in ipairs(workspace:GetDescendants()) do
if object:IsA("Texture") then
object:Destroy()
end
end
You can do shift from the first texture and hold shift click the last texture and click backspace well that is from me
If you are dealing with multiple parts which have textures in them and want to delete them, search the explorer for “Texture” for the class-name and then shift click all the textures or items you want to remove.
You could write a piece of code to put in the command line, something like this.
local parts = game.Workspace:GetChildren() for i,part in pairs(parts) do local textures = part:GetChildren() for i,texture in pairs(textures) do if texture.ClassName == "Texture" then texture:Destroy() end end end
Also if I’m wrong please correct me thanks…
Thanks for the replies, I’ll see how they work
Unfortunately when I lookup “Texture” in the searchbox it doesn’t just show the textures, it also shows the parts they’re within, so if I shift click to select all then delete the brick will be deleted as well.
Ahh sorry if I delete you brick because I ever do that for a shortcut