Simple Lua Coding for Sweps. Primary fire: make the victim dizzy and reduce walk&sprint speed

Simple Lua Coding for Sweps. Primary fire: make the victim dizzy and reduce walk&sprint speed
Exactly as the title…
Please help me making a swep that gives the player motion blur like dizzy effects and reduce walk&sprint speed.
Please help me!

p.s. I am a newbbie to Lua.