Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do you start a basic script?

1 answer

Have a goal.

Before you start scripting, you have to know what your going to make. But, maybe you don't know how? Looking up some YouTube tutorials or looking at the Wiki will definitely help. If you cant find anything, try to come up with something you know you can do, and a long the way, you might even learn how to do your original goal.

Define your variables

Once you know your goal, you might want to define any variables you will need along the way. Don't know what variables are? Go to http://wiki.roblox.com/index.php?title=Variable . Defining variables will help you along the way to make your script as short as possible.

Write a few functions

Got your variables? Your ready to start the main part of your script! Functions are next. Don't know what functions are? Go to http://wiki.roblox.com/index.php?title=Function. Functions are mostly important for when you have longer scripts, but when making a kill brick, you only end up using one of them.

Put your script together

Your at the final part of your script; putting it together! Now that you've got all your functions and variables wirtten out, all you have to do is call the functions you've made (by typing "FunctionNameHere()"), in the order you want them to happen. And that's basically it! You've written a script! Congratulations!

1 comment

0

And as far as goals are concerned, a goal like "i want to make an FPS like phantom forces with dragons that breathe fire" is ridiculous. Make your goals as small as possible; "I want to make a brick turn invisible." In the long run, you'll progress much faster doing it like this.

This discussion is preserved as it was. New answers, comments, and votes are closed.