So I’m making a game that’s going for an old roblox/studs aesthetic, and we’ve been using materials (which are variants of the glacier material) to get the visual effect. I’m trying to change to using plastic and variants thereof, because glacier has different physical properties, but there’s no way to automate selecting every part of a specific variant (we have over 260,000 glacier parts, so doing it manually isn’t really an option). I wrote a script to auto-select all the glacier parts
local selectedParts={};for _,part in ipairs(workspace:GetDescendants()) do if part:IsA("BasePart") and part.Material==Enum.Material.Glacier then table.insert(selectedParts, part); end end;game:GetService("Selection"):Set(selectedParts)
But I can’t figure out how to select all the parts of a specific materialvariant. If anyone can help, thank you very much.