Scripting in Roblox is genuinely challenging and far more complex than the rest of the gameplay. If you're new to it, the official Roblox Wiki can feel a bit dense, since it sometimes assumes you already know the terminology.
The essentials: you'll want to learn Lua first. The Roblox Wiki is a solid starting point, and their "Absolute Beginner's Guide to Scripting" is especially helpful. You can also learn Lua from reference manuals, or by taking apart free models and studying the scripts inside to see how they work. Just be cautious with free models, as some contain malicious scripts that can infect and ruin your place. (Note: these only affect your Roblox game, not your computer.)
To insert a new script, click Tools in the top-left corner, then Insert, then Object. A window will appear; find Script, select it, and click OK.