From your script, you would have to put a value for speed in the editor. Did you do that? You click on the object, then look at the script in the inspector, and there should be a place to add speed.
yes i did. that wasn’t a issue. i got where i was wrong. the tutorial is for 4 and i have 7.1. so i had to specify getcomponent which i didn’t. i did it. now its working. thnks.