Repeating (Repeat Until) - Roblox Beginner Scripting #16

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 339

  • @backwoodz4208
    @backwoodz4208 4 роки тому +274

    oh how alvin has changed
    He went from this helpful young teen to the experienced adult he is now
    Voice has got from high to low so quickly
    Carry on doing the good work that you have been doing. You’ve benefited me a lot. 💙

    • @AlvinBlox
      @AlvinBlox  4 роки тому +60

      Thanks!

    • @General-qx7md
      @General-qx7md 4 роки тому +5

      @@AlvinBlox i love your all vids i subscribe your channel turn on bell notification like please give me robux username:hakeemgamingplayz

    • @Prawnz
      @Prawnz 4 роки тому +13

      Is he an adult? He seems around 15

    • @recommendedtube
      @recommendedtube 4 роки тому +3

      @@Prawnz same

    • @kirklurkpu4470
      @kirklurkpu4470 4 роки тому +3

      @MrGaming
      Jeez, age is more important than scripting? Aw hell nah.

  • @domtu7129
    @domtu7129 2 роки тому +9

    quick overview
    the differences of a while loop, and a repeat loop:
    while loop need it's condition to be true for the loop to work, while the repeat loop needs the condition to be false for it to loop.
    The repeat loop runs the code block at least ONCE , then checks if the condition has been met, while the while loop doesn't run the code at all, if the condition hasn't been met.

  • @jett27j30
    @jett27j30 4 роки тому +41

    YOU ARE AN ABSOLUTE LEGENDDD! THANK YOUUU! I have this game where I really needed this type of loop, but I didn't know how to. What a coincidence. Thanks bro!

  • @ahamedsalim7609
    @ahamedsalim7609 3 роки тому +3

    this is what i had tried
    repeat
    print("not enough")
    wait(1)
    Instance.new("Part",game.Workspace.parts)
    until #game.Workspace.parts:GetChildren()>4
    print("enough parts")
    this is a nice example
    hope u liked it

  • @weirdorobloxplayer2315
    @weirdorobloxplayer2315 3 роки тому +3

    while loops needing to be true and repeats needing to be false is a good way of wording it thank you AlvinBlox. You are a help as always!

  • @trapmusic8343
    @trapmusic8343 4 роки тому +17

    Hi Alvin! This is day 5 since I'm watching your videos and so far you're my fav youtuber and the best one on explaining LUA scripting I literally love you so much, keep up the good work and keep on posting more of these! ❤

    • @AlvinBlox
      @AlvinBlox  4 роки тому +9

      Thanks and good luck!

  • @jh1an394
    @jh1an394 4 роки тому +3

    Thanks, just lost motivation to learn scripting for 2 days because I keep looking at pro scripters but i realized that they take years to master this talent so I thought to myself that I can do the same thing as them and now I'm starting to watch your videos again

  • @loominatrx
    @loominatrx 4 роки тому +88

    when programning kid evolving:

  • @jaydenlee8452
    @jaydenlee8452 4 роки тому +11

    Thank You!! I have been struggling on this topic!!

  • @DiorlandRippRBLX
    @DiorlandRippRBLX 4 роки тому +6

    Thank you so much! You're a super talented person!

  • @joshholmes9011
    @joshholmes9011 4 роки тому +25

    Dudeee I haven’t watched you in a year and uh
    Your voice changed big time

    • @epicfilms4life507
      @epicfilms4life507 4 роки тому +4

      yeah bud it's called puberty

    • @LJ07EBP
      @LJ07EBP 3 роки тому

      @@epicfilms4life507 We know, hes just saying chill.

  • @clevertango88
    @clevertango88 4 роки тому +31

    Hello Alvin! I am making a game and I have a question. I want the character’s feet to walk according to the direction the player is moving, so the forwards walking animation doesn’t play when you are walking backwards or maybe towards the right.

    • @retrocat
      @retrocat 4 роки тому +6

      that's uh not a question

    • @crusaderspear9979
      @crusaderspear9979 4 роки тому +3

      you could just remove roblox animations for walking and make your own 8 direction walking animations that play when you press the directional buttons

  • @xDarkRegionx
    @xDarkRegionx 4 роки тому +12

    I have been watching you from 2 years now, I only watched you not even a single other youtuber for scripting tutorials. I thought scripting is nothing and I wrote "make player fl

    • @sand8673
      @sand8673 4 роки тому

      That's kind of funny because I did to. I was like, give wings lmaoo

  • @pico8153
    @pico8153 4 роки тому +19

    I really love your vids when you do Tutorials

  • @1gamer988
    @1gamer988 4 роки тому +12

    Hey Alvin, can you make a video on how to make a working reception system where you can check people in an out, I would really like that idea for my upcoming hotel coming soon! Also, great scripting series.

  • @doge_man3367
    @doge_man3367 3 роки тому +2

    OMG YOU ARE AWESOME! YOU HELPED ME A LOT IN MY STORY GAME!

  • @baguettereal
    @baguettereal 4 роки тому +38

    Didn't watch the video yet but I bet it's amazing! I've got a suggestion: Can you please make a tutorial on how live events are made? Like I've seen on Bee Swarm Simulator adding codes and removing them without restarting the server, it would be really cool if you could! Thanks!

    • @Voidify10
      @Voidify10 4 роки тому +3

      Yes please

    • @zaksharaz5105
      @zaksharaz5105 4 роки тому +4

      Well the thing is the game probably did get updated and the code was told to wait a certain time before being executed

    • @dusty3357
      @dusty3357 4 роки тому +1

      maybe they got it all planned and programmed

    • @sirmonke8946
      @sirmonke8946 2 роки тому

      I know that this comment is 2 years old, but there is probably a plugin for that

  • @EriksNix
    @EriksNix 4 роки тому +1

    Nice a Renew Video from 22 Jun 2018. Thanks bro for all the help from until 2017 / 2020!

  • @Flex_plosion
    @Flex_plosion 4 роки тому +3

    Great playlist tutorial i can memorized the scripts and i can't wait to move on to advanced scripting playlist. :D

  • @PoppinCorn
    @PoppinCorn 4 роки тому +8

    Do a tutorial on TweenService!

  • @gab11290
    @gab11290 4 роки тому +38

    Can you make a tutorial on how to make random stages like in Tower of Hell?

    • @13physc
      @13physc 4 роки тому

      @Ayaan Mohammed put it in script form

    • @yourluggage1918
      @yourluggage1918 4 роки тому +10

      @@13physc idk if that will help you improve scripting if you just copy paste scripts, just my opinion tho

    • @wiserguest1238
      @wiserguest1238 3 роки тому +1

      use a math.random command and use a script for it to use each random number as a stage

    • @probablyblue426
      @probablyblue426 3 роки тому +3

      @@yourluggage1918 Ctrl C Ctrl V

    • @swaggied
      @swaggied 3 роки тому +2

      math.random[1,#Stages]
      You need to know how to learn how to script, I mean this with good intentions. Living off of free models is going to get you in trouble one day.

  • @BaconAmazeinYT
    @BaconAmazeinYT 3 роки тому +1

    Just placing a timestamp to pick up from where I left off
    6:42

  • @ValeryLav
    @ValeryLav 4 роки тому +4

    Thank you so much for helping me with my game! You are the best💜

  • @robbieonair
    @robbieonair 4 роки тому +3

    tostinos tostinos, hot pizza rolls!
    Good video! Keep up the good work! I'll be here forever!

  • @HEROFOREVER
    @HEROFOREVER 3 роки тому +1

    I find it hilarious that the first video in this series got over 1.2 Millon views, and just over half way through, only 4% of us made it this far. And of that 4% a great number of us are probably re-watching this video, or the viewers are just picking and choosing what videos to watch (not going through the series from the beginning). I think its fair to say less than 1% of the people from the beginning stayed to learn this far. So that's some interesting math. People want to learn things, but even when all the learning tools are provided to them in a fast, easy, and convenient way, still very few of them will actually give it a solid effort.
    I'm no pro scripter by any means, but I'm telling ya its worth going through these videos, pausing, writing down everything he does, saving your scripts, then applying them in there own way, then after the video, spend 2x the video length just reviewing and playing with the new stuff you learned.
    There is absolutely no reason why when people are interested in something like scripting, for less than 4% of them not even able to make it 3/4 of the way through the 'course'.
    Thanks for the vids btw. I know this is your older series, but most of it is still relevant.

    • @shatterdpixel
      @shatterdpixel 3 роки тому

      I am a member of the 4% who've watched this video.

  • @mothergaea
    @mothergaea 4 роки тому +26

    NOTICE ME!! Also, how’s your week? Stay safe, wash your hands.

    • @AlvinBlox
      @AlvinBlox  4 роки тому +10

      Good, keep washing them hands

    • @Rose-id9sj
      @Rose-id9sj 4 роки тому +2

      Wow, Planet Earth watches Alvin too? Awesome!

    • @urlocal_grape
      @urlocal_grape 4 роки тому +2

      Planet Earth Im sorry for the Global Warming

  • @ProGamer-br6bt
    @ProGamer-br6bt 4 роки тому +2

    WHAT THE HELL I WAS JUST WATCHING UR OLD VIDEOS THIS IS UR VOICE IN THE PRESENT??? HOLY CRAP 2:28

  • @sqmetimesdev6150
    @sqmetimesdev6150 4 роки тому

    This is why I am subscribed to this guy, he actually shows a difference in something seeming very similar. Thanks for the help!

  • @jcfiggy
    @jcfiggy 3 роки тому +3

    I have officially made a Neon Block that changes colors every second. Noice.

  • @JamesJohnson-iq5wb
    @JamesJohnson-iq5wb 4 роки тому

    Congratulations! You've made it so far!

  • @ItzRoloYT
    @ItzRoloYT 3 роки тому

    hey alvin, your my fave scripter tutorial channel thing

  • @rooboct
    @rooboct 4 роки тому +1

    If you really wanted to, you could just do "while #game.Workspace.Folder:GetChildren() < 2 do
    wait()
    print("Not enough (Parts)In this Folder. ")
    *wait(999999999999)
    *
    end
    if
    #game.Workspace.Folder:GetChildren() > 2 then
    print("Enough Parts,Success!")end"
    instead of actually doing a repeat until, but still i agree with you!

    • @Spelo1
      @Spelo1 4 роки тому

      But it won't repeat until 999999999999 seconds have passed

  • @oscoolerreborn
    @oscoolerreborn 3 роки тому +2

    I think I’m have a sensation of Deja vu!
    9:10 mouth clicking, it’s like a whole new keyboard I LOVE IT!
    Thanks AlvinBlox! For all this! Could have never been a human without you!
    I-mean Roblox Character... Person
    I also have many questions, such as why can’t I enable and disable a GUI inside a game using the enable property,
    And also is there a way to find a “something” in the game and keep hold of it forever so you can change it, for example if you have a game where that “something” moves randomly inside the workspace, StarterGui, ServerStorage and so on! I really need help on that! Went to the Roblox developer page and they said FindFirstChild() but that doesn’t really help :C! Thanks for reading!

  • @tan_0562
    @tan_0562 4 роки тому +1

    I love your videos and im only 10 i get good at scripting by your videos alvin!!

  • @anguspang2186
    @anguspang2186 4 роки тому

    fan for a long time,i really enjoy watching your vids,they are very clear and easy to understand,perfect guide for beginners,you deserve more subs

  • @KevinRexFromDk
    @KevinRexFromDk 4 роки тому +5

    Nice

    • @pico8153
      @pico8153 4 роки тому

      KevinRexFromDk I can tell you really love his vids

    • @AlvinBlox
      @AlvinBlox  4 роки тому +2

      Cheers mate

    • @pico8153
      @pico8153 4 роки тому

      Yay

  • @SophisSnow
    @SophisSnow 4 роки тому +1

    Amazing video. This really helped!

  • @Issemoran
    @Issemoran 4 роки тому +10

    Only 8k humans want to be developer , Iam one of them 😀!
    Also Thanks for AlvinBlox Who Making A Free Tutoriaks For Make Our Dream True💪❤️🔥!!!

  • @thetrickyitch7179
    @thetrickyitch7179 4 роки тому +3

    Always so excited to see a new AlvinBlox video - I'm quite a bit older than the average Studio user and just decided I wanted to try to learn Scripting and try to make a game a few months back. Alvin's videos were the very first I found. I couldn't believe how well-spoken and intelligent this kid was. My generation complains about the "lazy Millenials (and younger)." That I've learned so much from this young guy on the other side of the globe honestly gives me hope for the future. THANKS AB!

  • @jansendecatalina_
    @jansendecatalina_ 4 роки тому +1

    You are actually better and interesting then my teacher..Good job i love your vids,they are very detailed and good!

  • @MatteoP04ita
    @MatteoP04ita 4 роки тому +4

    Omg at the beginning my Google Assistant has understood “Ok Google”

  • @noob4695
    @noob4695 4 роки тому

    I love your vids so much keep it up man!

  • @stassied6909
    @stassied6909 4 роки тому

    ur voice is calming

  • @EriksNix
    @EriksNix 4 роки тому +1

    Alvin a question roblox update the bubble chat and things if you want to publish a game how do I put then bubbleChat?

  • @ayyzeek
    @ayyzeek 4 роки тому

    Thank you Alvin this has really helped me!

  • @DiamondRules01
    @DiamondRules01 4 роки тому

    Speed, also wondered why you've never made a game? They would become really popular due to UA-cam and how amazing you at coding!

    • @AlvinBlox
      @AlvinBlox  4 роки тому +2

      I am making one and it’s coming soon trust me

    • @DiamondRules01
      @DiamondRules01 4 роки тому

      @@AlvinBlox Ah yes, can't wait for that!

  • @thegamehouse1359
    @thegamehouse1359 4 роки тому

    YOURE THE BEST!!
    Oh and did the hacker from your arsenal stream got banned?

  • @soillong9755
    @soillong9755 4 роки тому +1

    i wonder why someone would dislike this great video
    the video really helps coding starters,thx alvin blox :3

    • @ituqu
      @ituqu 4 роки тому

      yep I atually feel smart now knowing how to script!!

  • @rainnfx_
    @rainnfx_ 4 роки тому

    Thanks for these tutorials

  • @intrusively
    @intrusively 4 роки тому +2

    Is there any way to do this if you're trying to specifically check if a model with a certain name is there? Let's say I set this up to repeat until a part with a certain name appears, how would I go about that?

  • @boardedbarriergaming3255
    @boardedbarriergaming3255 2 роки тому

    You help me with alot man keep up the good work please

  • @MrGGorky
    @MrGGorky 4 роки тому

    Very good tutorial! helped me a lot.

  • @puruzmeep324
    @puruzmeep324 3 роки тому

    Thanks for the hardwork!

  • @robotsavageROBLOX
    @robotsavageROBLOX 4 роки тому

    Nice job this really helped me :D

  • @sniffsnort
    @sniffsnort 4 роки тому

    Great videos.

  • @shyambihariyadav9884
    @shyambihariyadav9884 4 роки тому +1

    Can you explain for i,v in pairs it's kinda hard to get it

  • @pansorial_alt9936
    @pansorial_alt9936 4 роки тому +5

    Thx Alvin have a good day! For now i dont need that but game.players.leaderstats.braincells.value +1 :)
    Edit: I remember how nice you was with me in game thx you

  • @Buckly-Fall-Guys
    @Buckly-Fall-Guys 3 роки тому

    Great tutorial your a legend nothing can stop you.
    Amazing work!

  • @fsdpvjrpm2458
    @fsdpvjrpm2458 4 роки тому +1

    This is awesome! Can you maybe make a tutorial on how to make an item giver by clicking?

  • @fundbanks
    @fundbanks 4 роки тому

    Good work!

  • @olyforever
    @olyforever 4 роки тому

    Love ur vids mate

  • @Kerbal
    @Kerbal 3 роки тому +1

    Thank you very much, my game needed this loop, the game will wait for the player to score the ball and the game stops.

  • @a.t.p.engineer7154
    @a.t.p.engineer7154 3 роки тому +1

    If the repeat is on the top then do you need to click tab so the script will work?

  • @HyperLeopard
    @HyperLeopard 4 роки тому +1

    11:08 just saving my time

  • @theficho5104
    @theficho5104 4 роки тому +1

    Can you continue the series for creating a roblox battle Royale game?

  • @petarkil
    @petarkil 4 роки тому

    Pretty simple stuff; about same as while loops, maybe even same. This comments from me may be dissapearing until there is some hard stuff.
    repeat
    (argument)
    until (condition)
    Fact from the video: # is used for how many integers.(numbers)

  • @ytxxcyloopxx8153
    @ytxxcyloopxx8153 4 роки тому +1

    Hi Alvin i have you See in a Football Game from roblox do you remember xDXXL?

  • @bisthenickel
    @bisthenickel 4 роки тому

    45th!
    Edit: Thx yt for making notifications, also alvinblox you helped me earn alot of talent! I love your sword fight creating series. You helped me through all that lua junk! Thank you 😁
    Edit 2: OMG THX

  • @ap_fj
    @ap_fj 3 роки тому

    Thanks! this helped me make a rapid-teleport-home script for a game.

  • @ISeeChase2
    @ISeeChase2 4 роки тому +1

    Helpful as always. Out of curiosity what is that 'CoreGui' folder and what's it for in studio?

    • @AlvinBlox
      @AlvinBlox  4 роки тому +2

      I believe for Roblox made gui like the top bar

  • @anrealnub2686
    @anrealnub2686 2 роки тому

    thx alot, this helped me make my loading screen! 😀

  • @Alan-xx8dz
    @Alan-xx8dz 4 роки тому

    Some may learn scripting from his videos but I watch this as ASMR.
    Thank you for helping me in my scripting journey.Love u bro!

  • @cjspiers2895
    @cjspiers2895 4 роки тому +4

    I love ur videos can u make tutorial how add people to team create if game owned with. Group

    • @aldoughkid
      @aldoughkid 4 роки тому

      in order to do that, you need to add the people who you want to build with in a role where they have permission to build / manage games

  • @unkown643
    @unkown643 4 роки тому

    You is lit my man and thanks a lot appreciate it

  • @jackiem6125
    @jackiem6125 4 роки тому

    Repeat loop is a very useful scripting tool and thanks to you now I know how to use it! 😄😄😄

  • @cosm1cdrawz
    @cosm1cdrawz 4 роки тому

    ty keep up the goodwork :))

  • @cakes0cks
    @cakes0cks 3 роки тому

    Great video :)

  • @braydensimpson7201
    @braydensimpson7201 2 роки тому

    I'm knowing this a lot, it's pretty easy now!

  • @Amritss664
    @Amritss664 2 роки тому

    wow im a beginner and just by watching your tutorials up to here i already know more than my biggest bro that started 2 weeks ago

  • @Michael01OnRBLXmore
    @Michael01OnRBLXmore 4 роки тому

    Alvin... Your voice gets deeper!

  • @JoSeph-qo4gq
    @JoSeph-qo4gq 4 роки тому

    very useful ty

  • @GalaxyWhale999
    @GalaxyWhale999 3 роки тому

    So, a repeat until is basically backwards then a while true do loop then I think.

  • @Chrisz_489
    @Chrisz_489 4 роки тому +6

    I'm always erlay when I click vid notifacation

  • @Spinzx
    @Spinzx 4 роки тому

    Wow nice vid bro!!!👍👌🤟🔥

  • @randomguyontheinternet6885
    @randomguyontheinternet6885 4 роки тому

    Alvin, I need to make a team changer restriction or a only people in that group can change to this team

  • @bennymario5876
    @bennymario5876 4 роки тому

    very helpful 👍

  • @glupcho
    @glupcho 4 роки тому +1

    I have one question... So.. right now you are teaching us, but.. how did you learn scripting in the first place?

    • @AlvinBlox
      @AlvinBlox  4 роки тому

      UA-cam videos and the old Roblox wiki which inspired me to make my own

  • @lazlaz59
    @lazlaz59 4 роки тому

    Alvin what does the # mean when you do the #game.Workspace.Parts:GetChildren() > 1

  • @markusmccloud
    @markusmccloud 4 роки тому +1

    Repeat Statement: *does its job*
    Repeat Statement: I'll f###in do it again

  • @dirprosl6901
    @dirprosl6901 4 роки тому

    Could you maybe do a player teleporting or camera manipulation tutorial? Thx ur the best scripter

  • @ilgeniodelmundo
    @ilgeniodelmundo 4 роки тому

    Alvin, do you think I will be able to build a RPG Game where you play and battle monsters in a level created game with this tutorials?

  • @smiley177
    @smiley177 4 роки тому

    THANKS :DDD

  • @Kaiqc
    @Kaiqc 4 роки тому

    The thing is most of this is for a simple minigames and intermission game. I'm building a naruto lore game, and I wanna figure out how to make jutsus and specs and script meshes.

    • @Spelo1
      @Spelo1 4 роки тому

      Simple? If you combine everything that lua can offer, then you can script all these stuff you mentioned no problem, Just look at epic minigames. It's "Simple" mini games that you mentioned, but built by hands of pros

  • @gamerplayer2174
    @gamerplayer2174 Рік тому

    thanks for the tutorial I was doing a function and didnt know how to make it go forever but this helped me!
    By the way do i have to make the function before repeat or inside the repeat?
    My script:
    function habibi()
    if script.Parent.Visible == false then
    script.Parent.Visible = true
    end
    script.Parent.Visible = false
    wait(0.5)
    script.Parent.Visible = true
    wait(0.5)
    end
    repeat
    habibi()
    until script.Parent.Parent.Visible == false

  • @BlueDoggy
    @BlueDoggy 4 роки тому

    this is useful because I can print "not enough players in game"

  • @roelyoon3466
    @roelyoon3466 4 роки тому

    Ok, but the example you used on this works with the while loop too. So is the repeat loop used for anything that the while loop can't be used for?

  • @Coryiodine
    @Coryiodine 3 роки тому

    Can you do an "until" without repeating? Like say I want to have a lantern light up at night and stop lighting up in the daytime can I make it light up "until "12:00:00"?

    • @coolcarl2232
      @coolcarl2232 3 роки тому

      If you want the script to check wether its day or not u should have a repeat in until

  • @bluzorro3597
    @bluzorro3597 4 роки тому

    Can you make a tutorial on coroutines?

  • @Lucas-pp1bj
    @Lucas-pp1bj 4 роки тому

    can you make a video on how to do tables and for i, v?

  • @ImSpatialX
    @ImSpatialX 4 роки тому

    When try to publish my game i have a script and when i press publish to Roblox, a message pops up saying "There are uncommitted script changes that will not be publish with the place. Do you want to publish anyway?" Why