For Loops - Roblox Beginner Scripting #20

  Рет қаралды 84,789

AlvinBlox

AlvinBlox

Күн бұрын

Пікірлер: 251
@divine2225
@divine2225 4 жыл бұрын
I've binged up to this point, from the beginning of the series in the last two days. Super helpful, and I'm truly learning a ton.
@willzyt5794
@willzyt5794 4 жыл бұрын
AlvinBlox ive been with this channel sense 2017 and your still teaching me and many other people with scripting keep it up man!
@AlvinBlox
@AlvinBlox 4 жыл бұрын
cheers man
@1gamer988
@1gamer988 4 жыл бұрын
I HAVE LITERALLY BEEN WAITING FOR THIS VID! Love the scripting series!
@AlvinBlox
@AlvinBlox 4 жыл бұрын
Thanks!
@1gamer988
@1gamer988 4 жыл бұрын
Yw!
@Seer_Verse
@Seer_Verse 4 жыл бұрын
People: youre the best alvin your voice changed so much Me: *d a r k m o d e*
@uraveragenoob7070
@uraveragenoob7070 3 жыл бұрын
yo, wanna try discord light mode?
@an28lighting86
@an28lighting86 3 жыл бұрын
@@uraveragenoob7070 haha
@RED40HOURS
@RED40HOURS 3 жыл бұрын
@@uraveragenoob7070 its literally a nuclear bomb going off
@bush3126
@bush3126 3 жыл бұрын
bro, I dont see it.
@woopish2613
@woopish2613 2 жыл бұрын
@@bush3126 his roblox studio is light mode
@PoppinCorn
@PoppinCorn 4 жыл бұрын
I really liked this video. It thoroughly explained how to use for loops like this. If you ever start a advanced scripting series, I suggest teaching metatables because it is hard to find anything that doesn't confuse me lol. Keep up the good work!
@AlvinBlox
@AlvinBlox 4 жыл бұрын
Thanks for the idea! Def wanna do em later on
@chongwoe8848
@chongwoe8848 4 жыл бұрын
@@AlvinBlox sorry but what is metatables and what is em.
@Vibing2443
@Vibing2443 4 жыл бұрын
@@AlvinBlox alvin blox how do you feel about the roblox update that allows people at roblox to scan ur scripts for innapropriate things yya know
@haxis3764
@haxis3764 4 жыл бұрын
@@chongwoe8848 em stands for in this case them i think.
@haxis3764
@haxis3764 4 жыл бұрын
yeah, what is a metatable? never heard of it
@sqmetimesdev6150
@sqmetimesdev6150 4 жыл бұрын
I can already tell this is gonna be good
@krazyness_
@krazyness_ 4 жыл бұрын
Hello Alvin! I have been watching your videos for a year now! I really like your scripting and your ways of teaching. Keep up the good work!
@MattRBX
@MattRBX Жыл бұрын
basically understood this the moment i saw "start, end, increase" but i still appreciate that you make such a detailed video on it so everyone understands it :))
@spkspade3998
@spkspade3998 3 жыл бұрын
I'm really learning alot of stuff from this dude, I have already cleaned all my doubts, but only 1 thing is left: meta tables, it will be really great if he teaches us that
@slushyized
@slushyized 4 жыл бұрын
I'm so glad i got this far! Thanks Alvin!
@enriqueuy8101
@enriqueuy8101 4 жыл бұрын
I love this scripting it's so fun to build and script so fun! (I never been so early in an upload so cool!)
@darthvader6015
@darthvader6015 2 жыл бұрын
These instructions are very clear. I even made an exploding part. If you want to know how to make it, read this and follow these instructions: Add a screen gui into the starter gui and add a text label into the screen gui, add a part into the workspace and add a script into the text label, then copy this code: wait(2) for i = 10,1,-1 do wait(1) script.Parent.Text = i end script.Parent.Text = “BOOM” local Explosion = Instance.New(“Explosion”, game.Workspace) Explosion.Position = game.Workspace.Part.Position game.Workspace.Part:Destroy()
@CosyScripter
@CosyScripter 4 жыл бұрын
Thank you Alvin, I have never meant this so much, you are a Godsend!
@SoyFabian26
@SoyFabian26 Жыл бұрын
Bro i used to understand just the basic stuff like Wait() variables or properties but now with the help of this channel creating Games is a lot easier
@ixvryy3022
@ixvryy3022 4 жыл бұрын
This is the day that I finally learned..
@bouruili4319
@bouruili4319 4 жыл бұрын
I'm blessed another Alvin scripting video
@Laurascherryandwine
@Laurascherryandwine Жыл бұрын
Wow this was so clear . Everything just clicked omg!
@superhamsterpuppet3022
@superhamsterpuppet3022 4 жыл бұрын
I've watched this Series since episode 1 and i've learned a lot!
@terracottalite
@terracottalite 4 жыл бұрын
Me too.
@drexgames8649
@drexgames8649 4 жыл бұрын
Well I this wasn't so hard thankyou alvin please continue!
@baldboiii1195
@baldboiii1195 4 жыл бұрын
Thanks so much for giving me such an amazing series I have learnt a lot from you thanks you!
@danielxu2491
@danielxu2491 2 жыл бұрын
Thanks! I can finally create countdowns and know how others did it
@coolkid7377
@coolkid7377 3 жыл бұрын
To me, this was the easiest tutorial. Actually, let me say ONE of the most easiest tutorials. Love the vids alvin
@superstorm4228
@superstorm4228 4 жыл бұрын
11:00 - Too bad I haven't done math yet. However thanks for all the great tutorials you've posted at these times where I have lots of time to spend.
@AlvinBlox
@AlvinBlox 4 жыл бұрын
No worries! go binge watch em ;p
@Ratplanes
@Ratplanes 4 жыл бұрын
I now know how to use For loops.
@TFadlY
@TFadlY 2 жыл бұрын
thank you for the tutorial, i just realized that this was easier than doing the script one by one!
@worldlog1853
@worldlog1853 4 жыл бұрын
this explaines EVERYTHING
@oisinpark5807
@oisinpark5807 3 жыл бұрын
this makes more sense now
@krizzIord
@krizzIord 4 жыл бұрын
Guess I'm early. Edit: Ima use this.
@claysoggyfries
@claysoggyfries 4 жыл бұрын
Learning it yourself is better than a free model
@A_Kiwi.
@A_Kiwi. 4 жыл бұрын
Lol
@krizzIord
@krizzIord 4 жыл бұрын
Thx for heart
@lordar-pios6084
@lordar-pios6084 3 жыл бұрын
@AlvinBlox Your such a good influence thank you!
@ramennoodles3466
@ramennoodles3466 2 жыл бұрын
Thanks! I used this to make a disco ball.
@backkslashhh
@backkslashhh 4 жыл бұрын
AHHHHH WHY DID YOU SWITCH BACK TO LIGHT MODE MY EYESSSSSS
@NotProbablyKam
@NotProbablyKam 3 жыл бұрын
Another great video!
@A_Kiwi.
@A_Kiwi. 4 жыл бұрын
Start End Increase Thanks a lot for these videos There indeed helpful
@muhammadgachastudioandawes428
@muhammadgachastudioandawes428 4 жыл бұрын
Keep up the great work. Legit Taught me a lot.
@zenin7219
@zenin7219 3 жыл бұрын
when i didnt know for loops i did this instead local count = 0 while true do if count == 5 then return end print("Hello") count = count + 1 end
@pkstudios744
@pkstudios744 3 жыл бұрын
This was invaluably helpful, TYSm
@LeakingCode
@LeakingCode 4 жыл бұрын
Finally! A good tutorial! Thank you AlvinBlox, liked and subscribed!
@AlvinBlox
@AlvinBlox 4 жыл бұрын
Thanks for subbing!
@tz-cool9536
@tz-cool9536 3 жыл бұрын
I just have to say, I never thought. I’d actually have to know that a + & a - make a minus
@j4s0n21
@j4s0n21 4 жыл бұрын
Nice Video Bro
@AlvinBlox
@AlvinBlox 4 жыл бұрын
Thanks
@nuclear_reactor5x5
@nuclear_reactor5x5 4 жыл бұрын
I had fun inserting hundreds of parts really fast in my game.
@TheRealOderless635gnat
@TheRealOderless635gnat 4 жыл бұрын
I made kill parts for my obby game and I don’t know how much they r so I put them in a 📁 and I used local children = game.Workspace.folder:Getchildren() For I,v in pairs(children) do print(I) -cos index is the position End and there were 11 And I duplicated kill scripts by 11 and placed them in the folder and then done
@TheRealOderless635gnat
@TheRealOderless635gnat 4 жыл бұрын
I mean in the kill parts
@miguelawais
@miguelawais 4 жыл бұрын
yay
@Driekondo
@Driekondo 4 жыл бұрын
I like to watch this script series. Its explained very well. Could you do a episode on tweenservice?
@claysoggyfries
@claysoggyfries 4 жыл бұрын
This is exactly what I needed! Now a simple currency script tutorial
@Saad-jf1vc
@Saad-jf1vc 4 жыл бұрын
that's pretty simple, all you need to do is create a leaderstats script
@da_pixel69
@da_pixel69 Жыл бұрын
People: "I like this video. Thoroughly explained. Keep up the good work!" Me: "I like the video too..." in my head: *where is d a r k m o d e*
@lineofscripting6304
@lineofscripting6304 4 жыл бұрын
every tutorial you're making is what im looking for, thanks!
@randomdude7512
@randomdude7512 3 жыл бұрын
I didn't expect for loops to be this easy..
@concena
@concena 4 жыл бұрын
Can you show how to make global leaderboards in game
@somerandomperson5314
@somerandomperson5314 3 жыл бұрын
i have a question related to loops. suppose ur in a while loop, and the condition turns false while the system is at the middle of the loop. what would happen then? would the system repeat that round till the end and then stop, or would it just immediately stop? plz answer this question, oh scripting god.
@poopee123
@poopee123 3 жыл бұрын
Yeah, it only checks at the end of each loop.
@devanhorton2248
@devanhorton2248 4 жыл бұрын
YOU ARE MY SAVIOR, I USED TO DO script.Parent.Parent.Background transparency = 1 wait(0.025) script.Parent.Parent.Background transparency = 0.9 wait(0.025) so on and so forth. Now I can just do for I = 1,0,-0.1 script.Parent.BackgroundTransparency = i wait(0.025) end
@crazycaptaindev
@crazycaptaindev 4 жыл бұрын
nice video bro! i was waiting for this! i have a question what programme do you use to edit screenshots?
@AlvinBlox
@AlvinBlox 4 жыл бұрын
ShareX
@1gamer988
@1gamer988 4 жыл бұрын
AlvinBlox, can you make a tutorial on how to use ShareX? That would be helpful! 😊
@ovenaroundhead2881
@ovenaroundhead2881 4 жыл бұрын
after this series i'm not sure that i will be able to code more than this or i must go watch advanced version?
@iscriptfast
@iscriptfast 4 жыл бұрын
Awesome video! I have a suggestion, make a video, if you can, about saving people's bases. That will help me a lot, and I am sure I am not the only one that wants that.
@mohamedbah0157
@mohamedbah0157 4 жыл бұрын
Can you do a tutorial were we brainstorm all of these ideas.
@Flex_plosion
@Flex_plosion 4 жыл бұрын
Does the for loop countdown works on a gui tho?
@TheRealOderless635gnat
@TheRealOderless635gnat 4 жыл бұрын
11:48 while the intermission gong on Me : watches the profile water_bin lol
@CrazyAlternetive
@CrazyAlternetive 4 жыл бұрын
I think they should add how u want to code like scratch a easier coding or lua
@ayesp6188
@ayesp6188 4 жыл бұрын
What
@insaneballer63
@insaneballer63 4 жыл бұрын
Alvin, do you know when is the finale of the series?
@rayne6871
@rayne6871 4 жыл бұрын
why u wannna end it this d be fun doe
@KadenAE
@KadenAE 4 жыл бұрын
print("Thank you, amazing tutorial")
@AlvinBlox
@AlvinBlox 4 жыл бұрын
Welcome!
@castvirus3401
@castvirus3401 4 жыл бұрын
I really want to become a developer so thank you for helping!
@tvr3712
@tvr3712 4 жыл бұрын
Hey Alvin! Can you do a video about how to do model scripting pls? Thanks for the tutorial!
@truedraw8475
@truedraw8475 4 жыл бұрын
AlvinBlox I got in a game with you today! You was playing arsenal and I told you how big of a fan I was! Tho I think you was atm because you were not talking lol
@soillong9755
@soillong9755 3 жыл бұрын
wow i hv watched 20 episodes so far
@chicknguy8883
@chicknguy8883 4 жыл бұрын
Can you make a video on how to make and animate your own character?
@xcloudsandheartsx463
@xcloudsandheartsx463 4 жыл бұрын
I liked
@yuinurahilyon5711
@yuinurahilyon5711 4 жыл бұрын
Arigato Sensei 🙏🏻
@mariansamy7230
@mariansamy7230 4 жыл бұрын
Alvin Blox your channel is great but I really can't understand values
@aspec3602
@aspec3602 2 жыл бұрын
hi alvin i wanted to ask why do we put the ".." in i dont understand what the ".." is for.
@clementpoon120
@clementpoon120 4 жыл бұрын
Just for absolutely no reason, what kind of keyboard do you use??
@axlnoficial
@axlnoficial 4 жыл бұрын
Hi Alvin !, One question. Unable to find module for asset id 4582121027. Does the asset have a Module Script named "MainModule"? Also that it does not appear when you do the script well but if it is wrong
@gpm231
@gpm231 4 жыл бұрын
Do you have a discord server? And also can you do a tutorial on body movers? Like body force, body velocity......
@AlvinBlox
@AlvinBlox 4 жыл бұрын
i do but it's for premium channel members
@AlvinBlox
@AlvinBlox 4 жыл бұрын
yes body stuff maybe in future
@crossraider2567
@crossraider2567 4 жыл бұрын
Alvin I have a question
@Hypnothize1
@Hypnothize1 4 жыл бұрын
i made stairs that get created every halfth of a second code: local stairCount = 100 for i = 1,stairCount,1 do local myPart = Instance.new('Part') myPart.Parent = workspace myPart.Anchored = true myPart.Position = Vector3.new (i,i,1) myPart.Size = Vector3.new (1,1,3) myPart.Name = i myPart.Material = Enum.Material.SmoothPlastic print(i) wait(.5) end
@LocalBrownbear
@LocalBrownbear 3 жыл бұрын
tank you
@benhohndorf
@benhohndorf 4 жыл бұрын
alvinblox are you going to do a tutorial for module scripts or are you waiting for your advanced tutorial?
@AlvinBlox
@AlvinBlox 4 жыл бұрын
It will come, just more beginner stuff to get thru
@kirklurkpu4470
@kirklurkpu4470 4 жыл бұрын
so what I've been seeing in Epic Minigames is this for i = 10, 1, -1 do print("the next game game will start in". .i "seconds") wait(1) end then the rest of the game code note: although it's more of a GUI rather than print.
@Emcept
@Emcept 2 жыл бұрын
Thanks ^^
@yinismehsoul5347
@yinismehsoul5347 4 жыл бұрын
I want to make it to where if you complete level 1 for instance, you unlock level 2, if you don’t complete it, it will be locked, but I don’t know how?
@thomas-hr4wu
@thomas-hr4wu 4 жыл бұрын
Say you want something to happen when i = a number, how would you reference this after the loop is broken?
@sqmetimesdev6150
@sqmetimesdev6150 4 жыл бұрын
And it was
@TheRealOderless635gnat
@TheRealOderless635gnat 4 жыл бұрын
For 🍕 = 6, 0, -1 do Print(..🍕” Pizza slices r left”) End Print(“the pizza has been finished yummy tummy”) yummy cat from minitoon lol xd
@IndeedMax
@IndeedMax 2 жыл бұрын
Its funny how it seams like half the people who comment here are more interested in what program he is using for drawing rather than coding itself
@gamesinc.4624
@gamesinc.4624 4 жыл бұрын
Hey Alvin, representing the brazilian fans I wanted to ask if a variable is defined in the game or in the script? For example, if I made a script that said local VARIABLE = Sub2Alvin And another script that said print (VARIABLE) Would it print Sub2Alvin?
@okplakids9458
@okplakids9458 3 жыл бұрын
No it wouldnt as the other script wouldnt know what VARIABLE is
@legobag4882
@legobag4882 4 жыл бұрын
AlvinBlox can you do a tutorial on CFrames? love the series btw
@AlvinBlox
@AlvinBlox 4 жыл бұрын
yes at some point , will need to find a good way to explain but for sure
4 жыл бұрын
Tutorial For Camera Manipulation/Interpolation Pls
@AlvinBlox
@AlvinBlox 4 жыл бұрын
yh later on itll prob come
4 жыл бұрын
@@AlvinBlox thanks for the answer i really like your videos they are very useful
@caysonpowers8522
@caysonpowers8522 4 жыл бұрын
Great tutorial but this 11:01 made me laugh a lil :)
@beepbeepimasheep237beepbee3
@beepbeepimasheep237beepbee3 4 жыл бұрын
How can you even outsmart the script?
@SeiboRoblox
@SeiboRoblox 2 жыл бұрын
ur the best
@gamerdude422
@gamerdude422 4 жыл бұрын
I thought one developer used I and everybody just agreed on it
@alwnegative
@alwnegative 4 жыл бұрын
Hey Alvin, I was wondering if there was a way to loop something while a different loop was happening.
@Muscle_Daddy
@Muscle_Daddy 3 жыл бұрын
I’m not a scripter scripter but I think you can put loops inside of loop like while true do and inside of that you can repeat until ya know
@funmrziggyman5768
@funmrziggyman5768 4 жыл бұрын
Could you do a scripting video about how to make parts respawn? Thank you!
@digbick6917
@digbick6917 3 жыл бұрын
I like how the amount of likes decreased seeing people giving up watching scripting tutorials
@jimjen3050
@jimjen3050 3 жыл бұрын
lol so true we're falling off
@nitrobladezxl2994
@nitrobladezxl2994 4 жыл бұрын
hey alvin, I watched your vid on how to make a Robbable bank and I'm wondering if that will work with more than 1, will it? I'm making a game that has more than 1 robbery place /:
@mikegeelen9172
@mikegeelen9172 3 жыл бұрын
Probably change the name of the robbery location, add extra events for certain robbery area's. Link them up
@JSG4361
@JSG4361 3 жыл бұрын
how do i make it random so like the i = math.random but it still only has 64 options to randomise from like if randomnumber == 1 then elseif randomnumber == 2 then elseif randomnumber ==3 then etc.
@kingsqua172
@kingsqua172 3 жыл бұрын
alternative title: function but cleaner, and you dont have to copy and paste the function everytime you want it to run. So "Function but Better"
@iconichisoka7642
@iconichisoka7642 3 жыл бұрын
can you do raycasting it really confuses me
@ixvryy3022
@ixvryy3022 4 жыл бұрын
Hey AlvinBlox, Can u make a tutorial How to add a background music when the Game ends
@sogg8713
@sogg8713 4 жыл бұрын
I really need help! Everytime I open roblox studio and select a base plate, all I get is a grey screen showing some statistics and I dint know how to get rid of it.
@AlvinBlox
@AlvinBlox 4 жыл бұрын
try shift + f1 or f2 or f3 or f4 or f5
@sogg8713
@sogg8713 4 жыл бұрын
@@AlvinBlox alright, thanks!!
@sogg8713
@sogg8713 4 жыл бұрын
@@AlvinBlox I'm sorry, it did not work, however thanks for trying to help!!
@bd500_
@bd500_ 4 жыл бұрын
When will your new game get released?
@AlvinBlox
@AlvinBlox 4 жыл бұрын
soon, got lots of time to work now
@bd500_
@bd500_ 4 жыл бұрын
@@AlvinBlox im excited!!
@shadowgamerth5609
@shadowgamerth5609 4 жыл бұрын
Excuse me you can make video how to make script like custom move or place furniture in your house please?? (I want to do the game that can make your own room and furniture ;/)
@saturatedmatt8807
@saturatedmatt8807 3 жыл бұрын
where did your dark mode go
@otreeman6644
@otreeman6644 4 жыл бұрын
if the scripting system gets changed like there are newer ways to script how do you know what is right and what isnt ?
@petarkil
@petarkil 4 жыл бұрын
when ur in roblox studio u can see "what's new " in right upper corner in blue so u can check out updates on rs so if some of ur scripts aren't working then as u said scripting way get's changed - and it should say with what is it replaced (i think i said that correctly)
Breaking Loops (break) - Beginner Roblox Scripting #21
12:27
AlvinBlox
Рет қаралды 59 М.
In Pairs Loops (i, v in pairs) - Roblox Beginner Scripting #18
55:30
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 9 МЛН
Services & GetService() - Beginner Roblox Scripting #19
39:08
AlvinBlox
Рет қаралды 95 М.
Function Parameters / Arguments - Roblox Beginner Scripting #7
18:15
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 727 М.
Repeating (Repeat Until) - Roblox Beginner Scripting #16
16:29
AlvinBlox
Рет қаралды 107 М.
While Loops - Roblox Beginner Scripting  #15
13:07
AlvinBlox
Рет қаралды 86 М.
What Is The Best AI For Roblox Studio Scripting?
10:42
RoDev
Рет қаралды 462 М.
Learn Raycasting in 7 minutes - Advanced Roblox Scripting
7:20
Built In Functions - Roblox Scripting for Beginners #9
15:35
AlvinBlox
Рет қаралды 167 М.
If Statements - Beginner Roblox Scripting #11 - If, Then, Else
11:20