How to increase the speed when picking up certain balls?

What am I doing wrong in my script? (I want to make it so that when entering the trigger, the player's speed increases)