Eeettgyfby Said:
"I have spent 4 hours reinstalling Mac OS and it still stuck on the loading screen with the line. I turned it off during the process of it reinstalling os because the same thing which is happening now happened then did I break something"
-------
A Few Thoughts:
Sometimes when changes are made to the system(i.e. updates), system configurations (i.e. for Power) become manipulated, technically. So, reset the SMC and NVRAM. Use a different external keyboard, if available option.
- Use Ethernet (Hardwired-Connection)
Ethernet will allow for a reliable connection.
- Install Via a USB Bootable Installer:
Try installing via a USB Bootable Installer. Use a separate Mac to create one of these - use a 16GB flash drive. It is create in Terminal, with the correct drivers.
Go Here: How to Create a Bootable Installer for macOS - Apple Support