How to make something follow a character

In my game I need a object to float near the character. Does anyone know how i can do this?