Okais. I have tried again and again to get func train to work but i cannot

i have seached the forums and interwebs but i always seem to get it wrong.
Could you please either point me to a good up to date guide, or tell me how to do it.
Sorry again, i know its been posted before but it wont work

Also, just as a premise, i want to make a constantly moving train.