Is there anyway to change the material of viewmodel?

Is there anyway to change the material of the viewmodel via lua? for example if I wanted to make weapons gold material.

look into the $color2 or something similar

edit: oh shit thought it was color
it’s 1am oh god :v:

This might help you:



LocalPlayer():GetViewModel():SetMaterial("")


The only thing I see wrong with this is that he might want to only set the gun itself’s material.

Oh, you’re right, probably best to ignore my post actually

Will think a bit more next time :v:

It’s still a good solution. I think you could just do something like



local mat = Material("place/to/the/guns/texture/here")

mat:SetMaterial("gold")