|
deltavJoin Date: 2008-01-01 Post Count: 31893 |
it seems really dull to me
im more of a visuals kinda person, so lines upon lines of words would be more difficult for me to learn on account of being boring
i do understand how it works though |
|
|
Ah yes, "Lua" is an excellent scripting language.
I would suggest that you experiment with various concepts such as variables and functions and then utilize that to develop a web of other concepts.
You'll encounter a significant degree of trial and error during your experimentation with "Lua" although it will allow you to revise your skills to develop proficient solutions to problems involving aspects such as algorithms. |
|
|
i mean, i want to learn lua too.
it's just really hard to understand
thank god i'm more of a person who learns from videos |
|
|
@Anony
what other things do i need to know
all i know is
print
local
true/false
and other kinds of stuff from the videos. |
|
deltavJoin Date: 2008-01-01 Post Count: 31893 |
i recommend taking a look at simple user-made scripts and try to explain what each line of code does |
|
|
lua is definitely a love-hate relationship
sometimes you love it for doing what you intend
sometimes you hate it for dumb errors "ERROR: "Workspace" could not be found, Line 4 Stack End" |
|
|
"it's just really hard to understand"
Learning "Lua" is essentially learning a "Language".
Each language has specific formatting rules and standards applied to concepts to enable linguistical stability.
Although syntactical interpretation can be challenging to understand, I personally think that structuring the conceptual ideas together to develop a working solution is the significant problem that those interested in general Scripting/Programming encounter and this often results in discouragement. |
|
|
@delt
simple user-made scripts?
where could i find those
youtube? |
|
|
the worst way to learn lua is reading the wiki
it is so boring
i learned by looking at other scripts and teaching myself |
|
|
it is very easy to understand
much easier than actual other languages
you will be fluent within a few weeks of trying |
|
zaniac10Join Date: 2009-08-18 Post Count: 10000 |
put this into your game then try saying one of the keywords:
local meme = {
"mlg",
"rekt",
"scrub",
"doge",
"meme",
"mountain dew",
"doritos",
"xd",
":3",
":P",
"mtn dew",
"mtndew",
"mountaindew",
}
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
for _,v in pairs(meme) do
if msg:lower() == v then
plr:kick()
end
end
end)
end)
~ g | https://www.youtube.com/watch?v=5uZr3JWYdy8 |
|
deltavJoin Date: 2008-01-01 Post Count: 31893 |
"simple user-made scripts?
where could i find those
youtube?"
free models
or the "library" apparently, which is the same but on the website
go to Develop --> Library tab |
|
|
"@Anony
what other things do i need to know
all i know is
print
local
true/false
and other kinds of stuff from the videos."
It depends on what you intend to create utilizing "Lua".
There's plenty of other concepts such as "String-Manipulation", "Metatables", and "Coroutines".
I'd suggest that you research conditional statements and operators along with built-in functions and experiment with that.
|
|
|
@coffee
ok, thanks!
i want to start by learning how to chance a part's colors over and over again |
|
|
while true do
script.Parent.BrickColor = ("Bright red")
wait (.4)
script.Parent.BrickColor = ("Bright blue")
end
i literally just made that in a minute on my phone
oh and i just started learning in september |
|
|
"i want to start by learning how to chance a part's colors over and over again"
Ah, then I would suggest that you also acquire knowledge of the "BrickColor" property and "Loops". |
|
|
you can easily make the brick's color math.random but it involves 256 bit color hues and not default colors |
|
|
"you can easily make the brick's color math.random but it involves 256 bit color hues and not default colors"
There's also the "BrickColor.Random()" property. |
|
|
|
BrickColorRandom?
so that would just make it change colors back and forth right? |
|
|
dont forget the : between the words and the () after, to tell the program that it is a function and not a property |
|
|
"BrickColorRandom?
so that would just make it change colors back and forth right?"
It would "randomly" choose an available color unless it's looped, in which case it would cycle through various random colors. |
|
|
what else is there to learn about lua? |
|
|
"what else is there to learn about lua?"
There's the entire first edition of "Programming-In-Lua" on the Lua.org website.
You can also utilize lua-users.org for comprehensive information and tutorials. |
|