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

How, where did professional scripters learn from?

Heya, so this is probably a very, very frequently asked question.

How and where did professional scripters learn from?

So, I'm asking this because I've been trying to script using numerous tutorials, the wiki etc. but I haven't been getting anywhere. Basically all I know is doing basic loops and changing brick properties.

I feel like there's a huge wealth of information out there somewhere that I just don't have acces to. I do not understand at all how people learn anything just from copying code made by others. I suppose that does kind of teach something, but it's usually very vague and specific.

Everything just goes from 0 - 100 so fast. We were at 'How to define a variable!' just a second ago and now we're at 'CREATING A SELF DRIVING CAR THAT CAN MURDER PEOPLE WHO ARE IN A CERTAIN RADIUS'. It makes my head spin.

When I try to dissect a model and interpret the script, I feel like scientists of old who were trying to decipher the laws of the universe. It took many scientists a lifetime to make some of the discoveries that we take for granted, and if they had started from absolute scratch (refusing to learn and build off of the ideas of previous scientists), they would have to rediscover math and science on their own, and they would not have gotten very far at all.

I feel like I'm starting from scratch since I have little to no knowledge about Roblox lua, but instead of refusing to learn form others, I can't find others to learn from.

So, I ask you beautiful people:

How did you learn to script?

Where did you learn to script?

Everybody is so vague and specific, using technical concepts and giving little to no explanation at all. I understand that scripting is by no means at all something easy that you can just magically master by the end of the day, but learning with little to no structure is ridiculous, the kind of thing that only expert researchers or scientists who are trying to discover brand new things should do.

I'm sorry for writing such a long question, but I'm just.. confused.

2 comments

1

A L V I N B L O X ' S C O O L S C R I P T I N G V I D E O S

0

I usually look up a tutorial on something I'm trying to find.

2 answers

well; here is a one thing that you should keep in mind: being a good programmer is not about what you know rather than how you use what you already know (AKA: algorithm/structuring). professional programmer look up information all the time;

when it comes to teaching how to code, most learners are usually not given logic behind the things that s\he is learning; which makes reading other people's code harder. Programming languages don't come with functionality for everything, but we use them for almost anything and that's b/c of logic and planning are the two of the most important factors in programming; another thing beginners do wrong it that they don't think about generalizing their program.

learning logic behind things will help you discover more on your own

for example: lets say i have a table( assuming that you know what a table is); with number words (like: one,two,three,etc) and i wanted to generate a random number that gets the number word of the random number;

a new programmer might take this approach:

local my_table = {"one","two","three","four","five"}
local random_number = math.random(1,5)

if random_number == 1 then
	print(my_table[1)
elseif random_number == 2 then
	print(my_table[2)
elseif... then
	.....-- until five
end

now look at a professional programmers code

local my_table = {"one","two","three","four","five"}
local random_number = math.random(1,#my_table)
print(my_table[random_number])

compare the two!!

another example: lets say your making a program with slides (presentation);

** a beginners approach:**


local next_button = bleh.next
local previous = bleh.previous
local current_slide = 1
local display_screen = bleh.textLabel

local slides = {
	"lesson, \n Arsubia12";
	"DNA is small";
	"I like cheese";
	--etc
}


next_button:connect(function()
	if current_slide == 1 then
		slide = 2
		display_screen.Text = slides[2]

	elseif current_slide == 2 then
		slide = 3
		display_screen.Text = slides[3]
	elseif current_slide == 3 then 
		--- etch 
	end
end)

pro programmer:

local next_button = bleh.next
local previous = bleh.previous
local current_slide = 1
local display_screen = bleh.textLabel

local slides = {
	"lesson, \n Arsubia12";
	"DNA is small";
	"I like cheese";
	--etc
}

next_button.clicked:connect(function()
	local current_slide = current_Slide+1
	display_screen.Text = slides[current_slide]
end

now with massive code that beginners make, it becomes hard to think about the whole program; but do you notice how a pro just generalizes the code; that's why when learning to code you should always **start at the bottom and practice ** and always ask yourself and think about whether there is another way to do something

Effective behaviors to learn to code include: ***-being patient

-asking for help

-understanding why something works the way it does

-and practice***

Sources to learn to code: *-lua.org

-buying a book

-youtube videos (alvinblox, peaspd,etc)

-[API Refrence

](https://developer.roblox.com/api-reference)

-and any other sources;*

learn to code first then get into development i recommend going on YouTube and looking up "Lua Tutorial for beginners"

- I am currently working on a game that will teach players how to code and make Roblox games for absolutely free; so stay tunned

1 comment

0

thanks for the tips!

I learned from A L V I N B L O X The worlds best scripter

Only watch ALVINBLOX

1 comment

0

yeah, sure. well, i won't. he may be 'the world's best scripter' but he certainly also is the world's worst teacher.

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