Learn LUA, The Basics | Episode 1

preview_player
Показать описание
Learn LUA
Episode 1
The Basics.

Course Level: 🟢 Beginner

Episode 1 of this tutorial includes:
- Priting messages
- Variables
- Functions
- Simple math equations
- If, else statements
- Text input

-- Links --

Challenge

Make a sales tax calculator, that you set a variable for the price, tax rate, then do the math to give me the price without tax, the price with tax included, and the amount of tax.

Please like and subscribe for more tutorials!

Timestamps:
0:00 Lua Information
0:48 Comments
1:28 Printing
2:08 Variables
3:26 Functions
4:38 Math Equations
6:36 Inputs
9:06 If, Else
11:06 Challenge
12:22 Closing

----
Specs:
48gb ddr4 ram
i7-8700K
RX580
4tb Storage
Рекомендации по теме
Комментарии
Автор

I like the way that you code because you clearly express exactly what everything is being used for throughout the entirety of your scripts. It makes thing less confusing for people who are still trying to wrap their heads around certain things without wondering why there code always seems to be missing something minute, but necessary.

kirkcavanaugh
Автор

Thanks for a simple video! Other ones are really long and boring but yours is simple and easy to understand.

MRBBeastfp_
Автор

This is the best tutorial I've seen so far. Really helpful push in the right direction. If only you kept posting episodes cause ur awesome.

TheScrip_t
Автор

After rewatching it for 4 months i finally know it thanks for the video 🎉🎉🎉😊😊

legendarycoder
Автор

python user here!!
the variables and printing are the same for python, but excuse the local part of the variables. im gonna explain it further for those of you who don't understand.
variables are basically boxes that have information and store information, and the item is the information. example here is the score
local score = 30
the variable is storing the score of the player.

Jazzes.official
Автор

Thanks! I don’t have the time to watch a 4 hour course, this really helped me understand the basics.

blenthousiast
Автор

This is the best tutorial I have ever seen(In any coding
language).Keep on making videos dude.I am gonna send this to my friends

parthivkeshavmenon
Автор

Bro you deserve more subscribers,
Awesome video!

Floppy
Автор

I am fromTamilNadu, India. I started to learn for Tamil language Wikimedia projects. I hope your tutorial will help. I will continue lua practice. Thanks indeed.

-infofarmer
Автор

I recommend this video if you're trying to learn how to code in Lua.

JamesMasonDayTrader
Автор

simple and right to the point thanks .

MIInDsEthiopia
Автор

my goals are to have a good idea about learning Lua, I’m trying to make a Roblox game but right now I have 0 knowledge, very helpful

ChexReal
Автор

Thanks to the tutorial i just learned taxes at a age of 12 and i regret learning it

Alf
Автор

Great Tutorial
Best Tutorial(in all Programming Languages)

EnchantsStudio
Автор

Great stuff man. As a 13 year old who is trying to makes his parents proud by doing something that I like, this might just be the thing. Thank You so much!

nikhilsgamespace
Автор

thank you for the tutorial. now i understand lua a bit

sansCZ
Автор

nice little challenge, made it in french for more difficulty : -- le but --
print("ce programme ajoute la TVA belge a une somme \n")
print("Ajoutez le montant que vous souhaitez")

-- la réponse --
local answer1 = io.read()
answer1 = tonumber(answer1)

if answer1 == nil then
print("Ajoutez une somme convenable!")

else
local Without_tax = answer1
local With_tax = answer1 * 1.21

print("D'accord, faisons comme cela \n")

--le doute ?--

print("Etes vous vraiment sur de vouloir ajoute la TVA a "..answer1.. " euros? (1, 0)")

local answer2 = io.read()


if answer2 == "1" then
print("Voici la somme avec la TVA : "..With_tax.. "")
elseif answer2 == "0" then
print("Dommage!")
else
print("il semblerait que la valeur rentrer n'est pas convenable")
end
end

io.read()

resa
Автор

-- Challenge --
print("Price: \n")
local price = io.read();
local taxRate = 0.07

print("Price: " .. price)
print("With Tax: " .. price + (price * taxRate))
print("Tax: " .. taxRate)
print("Taxrate: " .. taxRate * 100 .. "%")

I went further haha

NewWorld-Roleplay
Автор

I wrote down if else and I'm making a rblx game, it came in handy ty

Dvn
Автор

im surprised how similar this is to java and python (the only ones i know currently lol), ty for the tutorial

the_mind_electric