Chosen Solution

My phone charges while plugged all the way to 100% but as soon as i take it off it dies and it overheats

Chasity Mullins this “as soon as i take it off it dies and it overheats” sounds like a bad battery. Replace the battery and re-evaluate. Let us know if there is any other history to the phone as @captainsnowball is eluding to.