Walking and Running boost

How can I boost the speed of running and walking myself on time?
I’m trying to do a SWEP. I need its speed of running and walking increased when I click on the RMB, I know as soon as I increase the speed like a "


self.Owner:SetWalkSpeed(500)

", but how to do it temporarily - no, help please.