Detect internet connection

I need this to, please help?!

Hi. I want to detect whether my game is connected to the internet at the staret of the game. Is there a function that can help me do that?

Any help would be greatly appreciated.

Yeah. This is literally breaking my game!