question on Speed function for swep's

Since



function SWEP:Deploy()
self.Owner:SetWalkSpeed(45)
return true
end

function SWEP:Holster()
self.Owner:SetWalkSpeed(250)
return true
end


doesn’t seem to work in a TTT gamemode, I was wondering if +duck or +walk functions would work. what I want it to do is once the Item bought, the function then holds either +walk or +duck until dead. making the person walk slower. If its possible, what would be the script?