Using a transistor to drive a servo.

I know i should use a transistor to power it,

No.

A servo has three connections power, ground and signal. Connect power to +5V, ground to arduino ground and signal directly to the arduino.
You might want to power this from an external power supply rather than directly from the arduino.