So I don’t know how to really learn how to code. I looked at YouTube videos but they really don’t explain well for me. Maybe there is a book or anything else I could use to learn?
Hello, welcome to the scripting side of things. This site is usually to get help on a script to see what could be erroring or to ask questions about scripting issues but this is a good start!
What sites to use.
Well, for starters... using the ROBLOX Developer Forum can help you learn stuff after you've learned a bit about ROBLOX Lua. You can also look at the ROBLOX Developer Site or better known as the ROBLOX Wiki.
Videos to watch
I would check out AlvinBlox for videos about scripting, in fact he's working on a new updated ROBLOX Beginner Tutorial Playlist for people to learn scripting. SteadyOn is a very good Scripting YouTuber to watch for random game videos. Now although SpooksHD doesn't upload by much or if he does, not on this channel anymore.. his channel still has some very good stuff to help you learn scripting..
Last Notes.
No matter what, know that scripting is a trial and error process. You are going to fail a lot, whether it's something hard to script or a simple typo. It will happen, don't let it demotivate you. Without failure, you wouldn't have success.