User:Crazypotato4/Test: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Crazypotato4
No edit summary
>Trappingnoobs
Fixed image links. Commented them.
Line 17: Line 17:
Now that you know <b>what</b> scripting is, you have to figure out <b>where</b> you're going to script.  The ROBLOX script editor is in the [[Studio|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:
Now that you know <b>what</b> scripting is, you have to figure out <b>where</b> you're going to script.  The ROBLOX script editor is in the [[Studio|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:


  [ Studio.png image ]
[[Image:StudioPicture2.png]] <!--Might want to upload your own image, Crazy. This has my name on the tab (I had to for the studio page- It had an entry on the tabs), and it has all the stuff like output already open. The image you were reffering to (/Studio.png, is YEARS outdated, so I wouldn't use that. xD-->


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.
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.


  [ Studio2.png image ]
{{Studio|Menu}} <!-- There's a template for this. Check out wiki.roblox.com/index.php/Template:Studio


The two things that you just opened are going to be the tools that we use to start scripting.  The output window is there to give us information on how scripts are running.  If a script is broken, chances are, an error will show up in the output telling us what is wrong with our scripts, so we can fix them.  The command bar is simply a place where we can type in code and press enter, then have the code instantly run, even if the game is paused.
The two things that you just opened are going to be the tools that we use to start scripting.  The output window is there to give us information on how scripts are running.  If a script is broken, chances are, an error will show up in the output telling us what is wrong with our scripts, so we can fix them.  The command bar is simply a place where we can type in code and press enter, then have the code instantly run, even if the game is paused.

Revision as of 21:27, 24 July 2011

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.