Moving Platform

Is there a script that can be used so that you have a FirstPersonController that can step onto an animated object(such as a cube that was animated in unity) and it will stay on and move with the platform? If anyone has a script then you could put it below as an answer.

I have already read that you can make the animated object a parent of the FirstPersonController, but I do not know how to write the code properly.

(if you put a code below, could you tell me what kind of script it is? (Js, C#, Boo))

Parenting can cause a ton of problems; here is the solution I used (only a couple days ago) to get my moving platforms to work.

http://answers.unity3d.com/questions/694/charactercontroller-falls-through-or-slips-off-moving-platforms

If you need any help just ask, but it's pretty thorough.