How to change player speed when not walking? (from script)

I've found the maxWalkSpeed and maxSwimSpeed properties but other than that I don't know how to affect the player's speed inside a script. I'd mainly like to control it for when the player is mounted.