code for servo works in tinkercad but not when I load to Uno.

then maybe definitely I should try using a RC car battery to power the servo.

I fixed your statement for you