Need help create speed power up

hey i need to create a speed power up but i dont know how.

this is what i have so far i want when the player picks up the cube thats called speedboost that the speed variable will increase by 2. can someone help me how can i do this ?