Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

how do you start a basic script? [closed]

Asked by
Orcest 0
8 years ago

how do you start a script and how do you make a starter gui

0
print("Hello World") User#6546 35 — 8y

Closed as Too Broad by BlueTaslem

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 8 years ago

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!

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. Perci1 4988 — 8y
Ad