I am trying to make the planets breathable when you are touching the ground or the terrain, but in the output it says 14:48:33.272 - Workspace.Planet Create Script:372: '<eof>' expected near 'end' and I cannot find what the problem is. Since the code is too long, I will put a link below.
http://hastebin.com/raw/mihugivema