Making a powerup that transforms player scale

Hello,
I am looking to input a power up into a game that will transform the player (specifically their size, making them either smaller, or larger). What are some possible methods of doing this? Please input some code and an explanation if possible. Thanks

if(powerup) {

}