Loops - Lua Basics (Part 7)

preview_player
Показать описание
When When When When When you want your code to repeat repeat repeat, then a loop is the best way to go about it! We learn about for loops, while loops and until loops!!!!!

FAQs:
Is Lua good for beginners/roblox?
Yes, Lua is perfect to learn for both beginners and Roblox developers!

What code editor are you using?
VSCode

What Lua extension are you using?

How do I install Lua (Windows)?

How do I run Lua in VSCode?

Subscribe for more videos!

Group Chats:

You can contact me on:

Any suggestions? Leave it in the comment section or contact me somewhere else!

Odysee Links:

Thank you for watching!

#stevesteacher #lua #learnlua #luabasics
Рекомендации по теме
Комментарии
Автор

Thanks bro! You and many tutorial guys help me on my roblox dev journey!!

iErikHeaven
Автор

So, let's say I want to loop it but with a frequency, like I want to make it run every 3 second, how can I do that?

edgarpurba
Автор

Thank you, but is there a way to break the loop while the loop already started ?

kizikizilord
Автор

i did not understand the part where u use:

local count = 0
while true do
print("mike")

if count > 10 then
break
end
end

I didnt understand why u use local count = 0 and count = count +1 (what do u mean by count is equal to it self and also plus 1). also if count > 10. I dont understand why u used +1??

MrSaf
Автор

OK I think I got it

for i = 1, 10, 1 do
if i ~= 10 then
io.write(i .. ", ")
else
io.write(i)
end
end

-- used io.write so it does not create a new line

suspendedAnimations