generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: For you who wants to learn to script...

Previous Thread :: Next Thread 
HIDETHECHEAT is not online. HIDETHECHEAT
Joined: 21 Jun 2011
Total Posts: 16
23 Nov 2012 12:50 AM
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
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
23 Nov 2012 01:00 AM
eat tacos
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
23 Nov 2012 01:02 AM
ya man
Report Abuse
Sorcus is not online. Sorcus
Forum Moderator
Joined: 29 Nov 2010
Total Posts: 3775
23 Nov 2012 01:16 AM
Thank you for copy pasting what Mark posted in Scripting Helpers?

~Sorcus
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
23 Nov 2012 01:32 AM
^

#winning
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
23 Nov 2012 12:28 PM
^
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
23 Nov 2012 12:38 PM
^

-= I'm not paranoid. Why? Who's asking!? =-
Report Abuse
thumper10 is not online. thumper10
Joined: 17 Apr 2009
Total Posts: 3304
23 Nov 2012 12:39 PM
^

~ I ate Sorcus ~
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
23 Nov 2012 12:39 PM
^
Report Abuse
Solotaire is not online. Solotaire
Joined: 30 Jul 2009
Total Posts: 30356
23 Nov 2012 12:41 PM
hey guys i have some more helpful advice:

First off, you should read The Rules for All Forums. http://www.roblox.com/Forum/ShowPost.aspx?PostID=80620879

Suggestion:
Don't ask others to debug your broken code without giving a hint what sort of problem you are having. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored. Posting a dozen lines of code, saying "after line 7 I was expecting to see (something), but (something else) happened instead" is much more likely to get you a reply.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image