Arduino - constant pace engine

Hi!
We just got an Arduino, and got help to set it up on a RC Car. The engine is wired to pin 13, we have a ground and a power cord. The reason I'm posting here is because I've been looking everywhere to find a code that sets the rc car's speed to a desired speed. The only thing that's been working so far is to use the following code, however the car runs with the same speed every time and is not working consistently:

#include <Servo.h>

const int pin = 13;
Servo server ;

void setup() {
pinMode(pin, OUTPUT); // sets the pin as output
server.attach(pin);
}

void loop() {
server.write(180);
delay(4000);

server.detach();
delay(6000);
}

Thanks

Hello Brekkis, welcome to the forum.

The sneaky folk that created this forum also created a post called 'how to use this forum - please read'. Just to be really awkward and devious they hid it in plain sight at the top of this and every forum. To make it difficult to spot they put it in bold. Please see if you can find it, read it then edit your question in line with the information in the post. Maybe then someone will help you.