So here is what happened. I installed Ubuntu onto a flashdrive hoping to be able to dual boot Linux/OSX. I burned Ubuntu onto the flash drive on my desktop PC (windows 8.1) with universal USB installer, I believe. I plugged it into my Mac OSX, rebooted, held the option key, and booted from the flash drive (it recognized it as "windows" by the way).
It then started to install and I must have somehow clicked install onto the hard drive because now both my hard drive and my flash drive are Ubuntu (both recognized as "windows" in the boot screen) and I really need to get my Mac OSX back.
I get this screen every time I boot from the hard drive then get stuck at a blank (looks terminal-ish) screen which doesn't load.
I can boot from the flash drive and get this.
It at least boots into Ubuntu.
I'm really not experienced with Ubuntu and I really don't want to have to keep Linux, so please if anyone can help me I would appreciate it.
p.s like I said earlier I have a windows 8.1 PC, so I can use that to help fix it if necessary I just really need my OSX back.
If you need any more information I'll gladly give it. Here is what it looks like with my flashdrive plugged in when I choose where to boot from.