When im sleeping and when im almost sleeping my body twitches on its own what could be causing that?

Myoclonus. This is very familiar in people just as they going to sleep or waking up. It's just the way you are. Read about it online and decide whether this describes you. Most people neither want or need treatment.
Several causes. Twitching episodes as one falls asleep is a benign phenomenon known as hypnic jerks, commonly called sleep starts. Twitching during sleep on the other hand can be caused by sleep apnea, periodic limb movements of sleep, or just the normal twitching that sometimes occurs during rem sleep.