TTT Sprint System

How would I start making a system to sprint in TTT (Or any gamemode)? I am looking to make a base script that I can maybe add a timer for a cooldown if I can make one that works.

Could I bind sprint to caps lock so that when caps lock is on, then sprint is turned on?

Also, would I put the code in serverside or clientside autorun?

Hook is Server, Player:KeyDown(key) is shared, take a guess.
i dont know if theres anyway to detect if capslock is “on”

K, thanks for your help brah.