User:Crazypotato4/Test

From Legacy Roblox Wiki
Revision as of 21:27, 24 July 2011 by >Trappingnoobs (Fixed image links. Commented them.)
Jump to navigationJump to search

Hello, welcome to crazypotato4's complete beginners' scripting guide! This guide is meant for beginners to learn all the basics of ROBLOX Lua. Make sure you read each word carefully, and study the guide, as if it were to help you study for the biggest test of the school year, because you don't want to miss anything. In most sections, there will be a link that says "Main Article". This link is just the main wiki page about the subject that the section is about. I suggest reading the version in this tutorial first, then if you really want to, you can check out the main page.

Introduction

What is Scripting?!?

The first thing you want to know is, what exactly is scripting? Scripting is a type of programming, which is just telling a computer what to do in a language that it understands. In scripting, instead of telling a computer what to do, you are telling an application, such as the ROBLOX game, what to do. Scripting is our way of communicating with the program that runs our games, which gives us endless possibilities.

On ROBLOX, we use a language called Lua to script. It is a very easy language to learn, and commonly used as a scripting language. The version that we use is called ROBLOX Lua, or RBX.Lua for short. RBX.Lua has many things added, which I won't cover until later, and it has a few things removed as well so that people can't use ROBLOX to hack your computer.

Getting Started

Main Article

Now that you know what scripting is, you have to figure out where you're going to script. The ROBLOX script editor is in the ROBLOX Studio application. To open it, go to the Start Menu on your computer, and go to 'All Programs' (maybe just 'Programs' on older versions of Windows, and Mac users will have to figure it out yourselves). Scroll down to the ROBLOX folder, and click on the ROBLOX Studio application inside it. The studio browser should open up, and look something like this:

File:StudioPicture2.png

Now, all those buttons may be intimidating to newer users, but it is all easy once you get the hang of it. The first thing you want to do is go to the Menu bar at the very top of the Studio window, and click on the 'View' button. In the drop-down menu, you will want to open up two things. First, you check the "Output", then, go to the Toolbars menu and check 'Command'. Your studio will now have a small bar at the bottom that you can type things into, and a large white panel taking up the bottom third of the game screen.