my teacher said we cant use that.

Why? What does your teacher suggest you use for a closing of a friendly letter?

This is the standard closing:

http://www.letterwritingguide.com/friendlyletterformat.htm