How to change a Material Variant with a script

So I want to change the Material Variant of Just one part, not every material. I don’t know if this is possible and there are no sources online that I’ve found about this topic.

All I’ve tried is this line of code that changes every Material to a selected Variant:

game:GetService("MaterialService"):SetBaseMaterialOverride(Enum.Material.Slate, "Crack1")
1 Like

You can try changing the Material Variant of the part through the Material Variant property of the part like so:

local part = game.Workspace.Part -- replace with part
part.Material = Enum.Material.Slate -- makes sure material is the same as the material variant
part.MaterialVariant = "Crack1" 
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.