[Another need of assistance] Materials on SWEP viewmodels/world models

Goal: Apply “models/shadertest/shader4” material to the view model of a SWEP.
Anyone know how to go about doing this?
Thanks :slight_smile:

self:GetOwner():GetViewModel():SetMaterial( “mat” ) in the deploy function.

I did this yet, it’s changing the material for all the weapons?
Bare with me during this one, this is my first time creating a SWEP.

That’s because the way it works there is one view model entity and its model gets changed. But when the model changes it doesn’t reset the material. When your weapon is holstered reset the view model material.