Command that removes textures

Hey! A while back I used a method to quickly remove textures from ROBLOX studio by running a command in the command bar. I know that this is pretty well known however I lost the proper command to run.

The issue here is I need to remove the textures off of a model that has 27,000 parts.

I’ve tried searching for it and even creating my own, however its come to no avail.

2 Likes

Are the textures in a separate Instance? I’m trash with things like that but you may consider using a for loop and texture:Destroy()

1 Like

This should do the trick.

for i,v in pairs(Model:GetDescendants()) do
    if v:IsA("Texture") then
       v:Destroy()
    end
end
5 Likes

I’d say make it transparent. Hence you could toggle it back on IF needed.

1 Like

Model isn’t defined.

for i,v in pairs(workspace:GetDescendants()) do
    if v:IsA("Texture") then
       v:Destroy()
    end
end
1 Like

My bad. I meant to explain that you should change “Model” to the path of whatever model you’re trying to destroy textures in. While changing it to workspace works just fine, it’ll remove all textures within the workspace and it won’t isolate it to just the model you’re looking to clean.