Here are the steps in order to get your Samsung device to work again.
1. Open Twrp
2. Go to reboot
3. Click download
4. Go to a computer and search in google "(Your device model number ex. SM-J700P) Stock ROM"
5. Click on a site (No preference)
6. Download it
7. Download Odin from this link
Odin3-v3.10.6
8. Plug your device into the computer
9. Open Odin
10. If there is a greenish-blue box then don't follow steps 11- 12
11. You will need to install drivers for your computer to recognize your device
12. I recommend
https://www.samsungusbdrivers.net/
13. On Odin click options (IMPORTANT) make sure Auto-Reboot and F. Reset Time are checked
14. Click AP or PDA depending on the version of Odin you are using
15. Select the Stock ROM file that you downloaded earlier
16. Wait for the text by AP or PDA to appear
17. Click start
18. DO NOT UNPLUG YOUR DEVICE DURING THE PROCESS I CANNOT STRESS THIS ENOUGH
19. Once your device reboots you will have none of your previous data
20. But... You have a brand new working phone ;D
Subscribe to me on YouTube
https://www.youtube.com/channel/UCLD...51L78kdQU9ij-Q