I have a lump in my groin above the scrotum. It's not inside the scrotum but near the top of where it starts. It disappears then comes back randomly.?

Probable hernia. A 'disappearing lump' near the scrotum sounds like a hernia. An exam your primary doctor would help get the diagnosis.
Inguinal hernia. Most likely. Suggest you get it checked out by a general sureon.