Please do not copy Safemoon. You will be doing yourself a disservice by trying to copy and paste someone else. If you really want to learn, start with the basics, build up to something like Safemoon. Understand how the RFI tax and the LIQ tax work.
Instead, follow this tutorial
Learning resources: