StripWeapons lua error

I get errors on StipWeapons() why?



if SERVER then

	if IsValid(Trace) and (Trace:IsPlayer() or Trace:IsNPC()) then
		Trace:StripWeapons()
        end
end



 attempt to call method 'StripWeapons' (a nil value)
 

can’t strip an npcs weapon

I want something like Taser, it Strips the Weapons of normal Players, npc is just for tests

edit: Fixed