|
| 19 Aug 2012 01:15 PM |
You've probably come here with a simple question, "How do I script?". Well, as I will explain here this may not be as simple a question to answer as you may have thought at first. It turns out that it is really an impossible question to answer, and you can probably see from this analogy:
Suppose that someone much younger than yourself came up to you and asked you "How do I do math?". You can definitely see that this is a bad question to begin with, and there is really no way to answer it. After all, whole 1000 page books can be written on even very small seemingly insignificant pieces of math. Even a very simple piece of math such as how to add numbers cannot be answered in a short reply, or even a pretty lengthy discussion, it takes years of experience to really get even the fundamentals of arithmetic.
In reply to them you might ask what problem specifically drove them to ask such a question, and answer instead that question, but you have no hope of adequately answering what they did ask.
And it is that situation exactly that is the case for anyone attempting to reply to your question of "how to script". When you get no answers asking this it's not that people don't want to answer it, it's simply that there is no good answer for them to give you. It's not like there's some super-secret passcode that one can get and then suddenly know how to script. It takes many months of learning before you can even begin to make new interesting stuff, so there isn't much that someone will be able to tell you in the scope of a single post to help you.
So then how exactly does one learn how to script? It's by no means an easy process, you have to be willing to put some serious effort into it if you want to get anywhere. While a detailed explanation of the process is beyond the scope of this post, if you really have decided that you want to take a stab at it then here's a rough outline of some of the steps that you might go through while learning: -Taking a look at the introductory stuff on the wiki which tell you how to edit and run script, and how to work on fixing broken scripts. This is actually quite important to do first, if you don't know the basics how to view and change code then you can't really do anything in the way of learning (I unfortunately didn't know to do this when I started out, and it made it quite a bit more difficult). -Taking a look at some of the tutorials that people have put up on the wiki. It may take a bit to find a good one that suits your needs, since they all approach teaching a bit differently. -Try pulling some simple things off free models and trying to figure out how the scripts work. Things like buttons that kill a character or traps are nice ones to look at for an absolute beginner. -Making small changes to those models to see what works and what doesn't, and building up more and more complex changes as you go. -Try scripting some simple models yourself with the knowledge you have, again, scripting traps like trapdoors, falling blocks, and killing bricks is a good thing to try. -Once you have a good idea of how to actually make some simple things work, look up more stuff on Lua in general, to learn more specifically how Lua works. -Try taking on a larger project. Pick something that doesn't have any pieces which are too tricky to make and tie everything together in a place people will actually want to play. -Take some more complicated stuff like leaderboards and tools and see how they work. -Edit them and add your own tweaks. -Try building something more complicated, like a basic RPG game, which requires more code structure. -And by that time or even much earlier you're probably far enough along that this post is a distant memory, so I'll leave it at that for now.
That's roughly the path that I took when I joined Roblox with no prior programming experience of any sort. Keep in mind though, everyone learns differently, so use whatever you find works best for you. |
|
|
| Report Abuse |
|
|
| 19 Aug 2012 01:16 PM |
http://www.roblox.com/Forum/ShowPost.aspx?PostID=63028895 copied get out
~I have a beard. Fear me.~ |
|
|
| Report Abuse |
|
Espardo
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 83 |
|
|
| 19 Aug 2012 01:16 PM |
| I think I've seen this before... |
|
|
| Report Abuse |
|