Events - Roblox Scripting Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024

Комментарии • 893

  • @JJA0
    @JJA0 3 года назад +191

    Me: looks away and looks back
    AlvinBlox: so now you know how to kill a solar system

    • @thoji215
      @thoji215 3 года назад +3

      Personally, that was the ending part for me.

    • @JJA0
      @JJA0 3 года назад

      @@thoji215 ikr

    • @JustynKelty
      @JustynKelty 3 года назад +5

      Bruh fr tho you cant look away at all

    • @LouieMason3
      @LouieMason3 3 года назад +1

      lmao so true

    • @okobox9999
      @okobox9999 2 года назад

      Lol same

  • @KamiKido
    @KamiKido 3 года назад +368

    You should add in your videos, examples of what you can do with everything we've learned. Would make learning this so much easier.

    • @AlvinBlox
      @AlvinBlox  3 года назад +130

      I did say some examples in the video such as adding leaderstats/cash values to a player when they join, but I’ll take it onboard for future ones.

    • @ramazanakusbocekus9239
      @ramazanakusbocekus9239 3 года назад +18

      @@AlvinBlox Alvin, we really need it. I do my own examples on my notebook compensate my need.

    • @bruhv6994
      @bruhv6994 2 года назад +3

      @@AlvinBlox ye we do

    • @The_Real_Darkoplen
      @The_Real_Darkoplen 2 года назад +2

      @@AlvinBlox please

    • @heathermohr6940
      @heathermohr6940 2 года назад +3

      @@AlvinBlox leave the guy be

  • @randomalpha5767
    @randomalpha5767 3 года назад +67

    Can’t wait for more of these to come out!! I appreciate that you describe HOW the script works instead of just writing it out like a lot of other tutorials do so your viewers can understand how to start writing their own instead of just copying what’s on the screen.

    • @GeodyEnt
      @GeodyEnt 3 года назад +2

      Yas I feel the same :)

  • @sketchcatandsterlingthedoo3193
    @sketchcatandsterlingthedoo3193 3 года назад +27

    Thanks Alvin! My learning process has been to take notes on all your tutorials, play with code, then re-watch the series and take more notes, and repeat the process. This is the third or fourth round, and it's great to have some new videos covering the same old topics. You Rock!
    Next up for me is learning to fire remote events on server and client. I got modules and returning figured out now so hopefully it's Cake!

  • @kadiboudacz5500
    @kadiboudacz5500 3 года назад +218

    y'all ever try to learn from Alvin's 2019 tutorials and when you're halfway finished, you find out theres updated versions of it 💀💀💀💀

    • @applebeestacos4840
      @applebeestacos4840 3 года назад +10

      yeah that just happend lol

    • @AlvinBlox
      @AlvinBlox  3 года назад +48

      Keep going!

    • @maybemid8224
      @maybemid8224 3 года назад +5

      lol same and @AlvinBlox why are you awake at 6

    • @Layththelion21
      @Layththelion21 3 года назад +6

      it's morning here in the us at the time he replied but I'm going to assume he lives in the UK

    • @limitedfair
      @limitedfair 3 года назад +2

      @@applebeestacos4840 same here lol

  • @WoahItsKris
    @WoahItsKris 3 года назад +22

    Yay! New tutorial! I understand events but I'm still gonna watch (later prob) because it's entertaining to watch!

    • @HDx03
      @HDx03 3 года назад +5

      It's also good to watch even if you know because it refreshes your mind

    • @WoahItsKris
      @WoahItsKris 3 года назад

      @@HDx03 Yeah.

    • @alexivy8732
      @alexivy8732 3 года назад

      bet u didnt watch it

  • @makl8906
    @makl8906 3 года назад +10

    You are immaculately explaining this stuff. Like, I went from zero knowledge to feeling like I'm getting a grasp on this within 2 hours (I've had to rewatch things a few times because my brain hurt)

    • @spooks6694
      @spooks6694 Год назад +2

      onb i couldnt understand any other video they'd either be too long doing irrelevant stuff or js tellin us what to do nd not teaching

  • @RobloxStudioInAMinute
    @RobloxStudioInAMinute 2 года назад +21

    We should also note that,
    - Events run in a separate thread, that means errors won't stop executing the script (other than type errors). That also means execution of your script will continue after hooking this event, even if there is a loop inside it.
    - :Wait can be used on events. :Wait yields your script (halts the execution) until event triggers, and if picked up, passes the arguments to your variables.
    - Some events are not replicated and can only get listened on clients or server.
    Alvin covered everything a beginner needs but I just wanted to note these out so if you have any problems you can remember to check for these.

    • @Spooksey
      @Spooksey Год назад

      Can You please, tell Me, how to Script something that happens Every Year? What I mean is, For Example: Say it's Christmas, and I want the Map to change, to have Holiday Decorations all Around, or Maybe just Grant You a Badge on that Specific Day, every Year, but I need it to happen Automatically. How would I do that?

    • @putthatonskibidi
      @putthatonskibidi Год назад +2

      @@Spooksey you would literally change and add decoration to map but save a copy of the old map then if you want to when you want to change the Christmas map back.
      I have never made a game I don't even know how to script or anything, but this just seems logical to me.

  • @tx_ony230
    @tx_ony230 3 года назад +15

    Broooo, this man is the best roblox teacher XD

  • @inspiredmonster3235
    @inspiredmonster3235 3 года назад +6

    Really cool that you have done this series. It is genuinely helpful and I thank you so much. I don't know of it is just me but sometimes the script can be a little hard to follow and I have to pause and take it apart to fully understand it.

  • @reolizations5331
    @reolizations5331 3 года назад +18

    Ahh yes that time of year :)
    Could we also possibly get an advanced animation video in the future too? Like custom rigs, making a spell appear out of nowhere, those kind of fundamentals?

    • @reolizations5331
      @reolizations5331 3 года назад

      Waited 5 days to say that again :D

    • @reolizations5331
      @reolizations5331 3 года назад +1

      @@PhonyDeveloper Not what im looking for unfortunately

  • @Typxle
    @Typxle 3 года назад +4

    thank you alvin for these awesome videos!
    i watch every single of ur videos i planned to watch ur 2019 scripting tutorials after i am done watching the 2020 1s and then try creating my own small projects

  • @extremeloader7471
    @extremeloader7471 3 года назад +4

    I love it. A lot clearer than the 2020 tutorial. Keep going, Alvin!

  • @uselesscraftys
    @uselesscraftys 6 месяцев назад

    I watched many tutorials about functions, parameteres and events, and i didn’t even understand a thing! But, you cleared everything for me! 1'000 thank you for you :)

  • @bb_blogs
    @bb_blogs 3 года назад +7

    Yess I've been waiting for this one!

  • @ayoubtherobloxian2155
    @ayoubtherobloxian2155 Год назад +2

    Thanks so much for these tutorials now i finally understand Functions and Events etc your teaching is so good you have just gained yourself a new subscriber

  • @greeneyes-_-
    @greeneyes-_- Год назад +1

    I didn't really understand how the function inside the event worked exactly. So what I did was to replay the video and test it by myself and now I understood.
    So small tip for everyone, if you don't understand, no problem, just rewatch and try it by yourself.

  • @stealthlogic2568
    @stealthlogic2568 3 года назад +10

    I remember when I started watching your 1st series in 2019 and you talked about events for 50 minutes lol.

    • @Eternalkanji
      @Eternalkanji 3 года назад +3

      Lol, good ol' days

    • @t0b9i
      @t0b9i 3 года назад

      @@Eternalkanji shut up

    • @Eternalkanji
      @Eternalkanji 3 года назад +1

      @@t0b9i lmao, u live up to ur Name

    • @Adomavo
      @Adomavo 3 года назад

      @@t0b9i wtf?

  • @TemChwo
    @TemChwo 3 года назад +1

    I watched through your last tutorial series (early 2020). Great to see you are updating and redoing them as time goes on! Keep up the good work, Alvin

  • @GDPlainA
    @GDPlainA 3 года назад +1

    This episode is one of the best ones possible. Not only you taught us about events, but you showed us where to find the possible events and functions in a list.

  • @BedsheetGhost_
    @BedsheetGhost_ 3 года назад

    A much better version of the hour long events video you uploaded last year. Very helpful!

  • @PhonyDeveloper
    @PhonyDeveloper 3 года назад

    Nice Job, Alvin! I learned from your older tutorials since these weren't out yet.

  • @btchtowhite1414
    @btchtowhite1414 3 года назад +1

    Yes, I waited for this. The events [long edition] from last year was long. So I'm happy is short this time

  • @VisionsGames139
    @VisionsGames139 3 года назад +1

    bc of you i finally stopped being so scared to try something new and im glad i came across your channel
    Thanks AlvinBlox

    • @AlvinBlox
      @AlvinBlox  3 года назад +1

      Happy to hear that!

  • @Ok-wb4du
    @Ok-wb4du 2 года назад

    two more videos to go! excited. ik its not an overnight things but i think i've got some of these vids down packed.

  • @planerunner4020
    @planerunner4020 2 года назад +1

    Yesterday, I did not even know the print command, Today, I can Create events!

  • @superdragonfly
    @superdragonfly 3 года назад +1

    I don't even want to learn Roblox Scripting and yet I still watch these videos.

    • @dumgreat9886
      @dumgreat9886 3 года назад

      same bro I quit roblox but i still watch these videos i feel like i just need to do it

  • @snarlax7278
    @snarlax7278 3 года назад

    LESS GOOO new video, bro I just like how you're helping so many ppl out of all tutorials these actually help thx so much

  • @osamastein
    @osamastein 2 года назад

    One of the best if not the best Roblox Lua coding lessons on youtube.
    Keep up the good work!

  • @Kitnick.
    @Kitnick. 3 года назад

    I been watching you for 5 years nearly, you are an absolute legend man.

  • @elimarsh4917
    @elimarsh4917 2 года назад

    the only person on roblox who makes working tutorials that dont waste time and can be understood this person should win an oscar

  • @monkeybah7910
    @monkeybah7910 3 года назад

    its 1am and i messed up but because of your previous videos i was able to debug, i got so excited i screamed

  • @vincekyle7131
    @vincekyle7131 3 года назад

    This helped me so much, Im on this part now and i've been enjoying learning scripting so far. Thankyou for taking your time to make these tutorial videos bro, and sorry for my english.

  • @braydensimpson7201
    @braydensimpson7201 2 года назад +1

    Yo thanks AlvinBlox, I love your video Ideas, they are very helpful, I'll be creating game's in no time. But I need to just get better at building.

  • @Godlikenoob7294
    @Godlikenoob7294 3 года назад

    His series is really helping me reach my goal of being a Roblox game dev

  • @steven.2602
    @steven.2602 3 года назад +11

    To anyone having issues with the event firing on startup, this is what worked for me, you may have to try something a little different.
    1, check if the part with the event is on the baseplate.
    2, if it is, check to make sure the baseplate's property "CanTouch" is unchecked. if it isn't, try unchecking it. for me, the part was hitting the baseplate, causing the script to fire.
    if anyone is curious, to my knowledge, "CanTouch" just determines whether or not it will trigger any Touch events.

    • @steven.2602
      @steven.2602 3 года назад

      @@veskos Less "gave up" and more "on hiatus of an indeterminate time", I'd love to get back into it at some point, but,
      A: school, and
      B: Already learning Java in school,
      Kinda got in the way of learning Lua. If i could get back into it, I probably would, but I'm already spending 7 hours a day, 5 days a week learning things (Including stuff I'd like to learn anyways,) It's not that I don't want to do it, I'd just rather spend my free time on other things.

    • @OGwarrd
      @OGwarrd 2 года назад

      GOAT

    • @clickthis1257
      @clickthis1257 2 года назад

      Tysmm

    • @chrisrich7368
      @chrisrich7368 2 года назад

      Thank you so much, I was stuck and had no idea how to fix it.

  • @Eternalkanji
    @Eternalkanji 3 года назад

    Alvin, I used to watch ur old tutorial. You have really evolved as a teacher! Or maybe it's just that I understand scripting. But you've deffi' evolved.

  • @honoured_one315
    @honoured_one315 2 года назад +1

    Finally learned how to code the scripts In the studio, i could not figure it out for 2 years O:)
    *Mind Blown*

  • @ronaldostoby759
    @ronaldostoby759 3 года назад

    So basically i learned to script at my current level by watching his 2019 videos and reading roblox's dev forms and develop page online, and this has helped me along way trying simple projects to learn things that seem complex.

  • @kimathi7489
    @kimathi7489 3 года назад +10

    one day I wanna be like Alvin! He seems like such a nice person to be around!

  • @peptobepto
    @peptobepto 3 года назад

    im in a good mood now because the first scripting tutorial that has made sense to me was recommended and im currently binging the heck out of it! thank you alvin!

  • @jadentheredfox9524
    @jadentheredfox9524 3 года назад

    Alvin is the BEST! I LOVE his new series so far! I am actually starting to understand it!

  • @Ultimational
    @Ultimational 2 года назад

    I started watching your tutorials today and im already learning so much! thank you!

  • @sunscreen30
    @sunscreen30 3 года назад +1

    have been waiting for this yay

  • @Kalvin69
    @Kalvin69 2 года назад

    Thank you! It had to watch it several times to understand...but once I watched it my fourth time I understood it pretty well! Thank you!

  • @amgadroblox3632
    @amgadroblox3632 2 года назад

    Thank you so much! When I completed the script, I had by far many mistakes and it didn't work but when I had the uncopyblocked game, I checked the difference and I fixed it. Once I was done again, everything worked! This is the only tutorial that makes my loading work. You deserve a sub and one day, you will reach 1 million! This took me a day to make and the working script was worth it. The tutorial is remarkable! Thanks so much again and make sure somebody cares about you.

    • @AlvinBlox
      @AlvinBlox  2 года назад +1

      Makes me happy, thanks :)

  • @NoobieOof
    @NoobieOof 2 года назад

    this is sooooooooooooooooooooooooooooo helpful i was wondering what was a event for the LONGEST time

  • @daaveed2371
    @daaveed2371 2 года назад +1

    tysm you have NO idea how much this helps me. thank you.

  • @ghughes7918
    @ghughes7918 3 года назад +1

    Your really good at this Alvin! I hope to be able to do what you do one day!👍👍🌸

  • @dingusdog4349
    @dingusdog4349 3 года назад

    i have watched the entire 2019 beginner series and learned kinda very little but when i watched this i understood the things i didnt in the 2019 beginner series

  • @havico514
    @havico514 3 года назад

    Pls keep this series up I'm trying to make a racing game and the first video on properties actually taught me how to change the paint of my car in gui I wanna learn more about scripting Guis so maybe further in this series do a tutorial on that but this series has been helping me really thank you bro

  • @pb.03.
    @pb.03. 2 года назад +1

    great vid! how long does it take to fully learn lua scripting?

  • @hopeitworked2974
    @hopeitworked2974 3 года назад

    Thanks Alvin your the best!! I have been checking everyday to see if you uploaded a new video :DD

  • @sournois90
    @sournois90 3 года назад +8

    4:58
    Alvin, i believe that the event is actually connected to the function only *once* , and not every time the event is triggered(in this case, every time some player touches that part), or else there would be several connections, and the function would be called several times!

    • @lazlaz59
      @lazlaz59 3 года назад

      Well obviously, it's because he didn't add a wait() inside the function.

    • @sournois90
      @sournois90 3 года назад +1

      @@lazlaz59 i'm still trying to understand what you meant by that. what adding a wait inside the function has to do with i just said?

    • @xshayla.janaex
      @xshayla.janaex 2 года назад

      On the output, it had (23x) on the executed function, so it happened 23 times.

  • @MattVSNNL
    @MattVSNNL 3 года назад +2

    Hey alvinblox! thank you so much for scripting tutorials I learn so much, my favorite is the sword fighting, this motivates me a lot, Thank you!

    • @AlvinBlox
      @AlvinBlox  3 года назад +1

      Glad you like them!

    • @MattVSNNL
      @MattVSNNL 3 года назад

      @@AlvinBlox I'm glad I found you

  • @purpleillusion5082
    @purpleillusion5082 2 года назад

    PS TestPart is not on my robloxstudio so I just select the actual part. Works fine. Thank you!! easy to follow.

    • @PencilMan865
      @PencilMan865 2 года назад

      TestPart was just the name of his part that he was scripting

  • @MachiavelIi
    @MachiavelIi 3 года назад +1

    This helped me figure out how to make a kill block all by myself, thanks!

  • @somerandomperson5314
    @somerandomperson5314 3 года назад +1

    your videos should be the official scripting tutorials of roblox! all hail lord alvinblox! long live alvinblox!

  • @EsOz898
    @EsOz898 2 года назад

    its starting to get confusing but youve helped a lot Alvin! I subscribed and will continue watching your videos.

  • @jake.8247
    @jake.8247 3 года назад

    I really don't know what to say. This is the best tutorial I've ever seen. This taught me soooooo much. I'm not even exaggerating. I can't thank you enough and I don't know how you barely ever say "Subscribe for free cookies!" 24/7.

  • @Insterment
    @Insterment 3 года назад

    Dude! thanks for helping me-
    you helped me a lot for scripting, i’m learning it . all your script vids are useful! tysm!!!!

  • @finnthecloud6402
    @finnthecloud6402 2 года назад

    ur the only dude i trust w teaching me this stuff

  • @ckboss494
    @ckboss494 3 года назад

    Im loving this series! Pls keep doing it 😁

  • @eliaaax
    @eliaaax 3 года назад +1

    alvin ur a god, thanks for the tutorial! i rllly wnana become good at roblox developing so thanks!!

  • @ianlashley123
    @ianlashley123 3 года назад +2

    Hey! Love the vids :)

  • @ElectricRBX
    @ElectricRBX 2 года назад

    Finally, a scripting RUclipsr that doesn’t skip over 20 steps. Seriously, most people are just like,
    “So, um yeah just put game.Workspace.Part.Touched:Connect(OOF) and then you’re done!!” They don’t talk about writing a function first.

    • @AlvinBlox
      @AlvinBlox  2 года назад

      Love to hear it, thanks

  • @landsfadern2
    @landsfadern2 3 года назад +9

    I remember last year when you posted scripting tutorials and I got really good at scripting after it but hope you can do some more advanced scripting tutorials teaching about BodyGyro, BodyVelocity, RunService and so on

  • @mxddoxwrld
    @mxddoxwrld 3 года назад

    Alvin these videos are the most helpful thing on YT bro! appreciate you

  • @hussein4250
    @hussein4250 3 года назад +2

    lovely explanation

    • @AlvinBlox
      @AlvinBlox  3 года назад +3

      🤔 The video has been up for 1 minute

  • @oisinpark5807
    @oisinpark5807 3 года назад

    I've watched almost all the videos and every single one of them has thought me something so thanks I wish I could subscribe to every video :)

  • @eggsaladplays4916
    @eggsaladplays4916 3 года назад

    This has been SOOOOOO helpful. keep on at it!

  • @null846
    @null846 3 года назад +3

    OMG OMG OMG OMG THANK YOU UR I REALLY NEEDED THIS ALVIN

  • @hedgy8717
    @hedgy8717 3 года назад +2

    Hey Alvin, I have been building for about 2 years in roblox now and I figured it would be time that I finally learn how to script. Your videos have helped me slowly develop some simple scripting skills. I really a appreciate it. Also it would be really cool if you went more into detail with events especially touch events. For example when a character touches a block it turns a certain color, or makes the health go down. Would also be really helpful if you could teach us how we can implement locals and script.Parent functions. I friend taught me some of this like how to change a parts transparency when a player steps on it but I still find it very confusing.

    • @Kalvin69
      @Kalvin69 2 года назад

      *p a t h e t i c*

    • @jacccex
      @jacccex 2 года назад

      @@Kalvin69 lol

  • @bilaaaaaaaaal
    @bilaaaaaaaaal 3 года назад +1

    Nice bro
    Ur so good in deving 😎

  • @WRLDPost
    @WRLDPost 3 года назад

    Yes yes yes! FINALLY! I'VE BEEN WAITING FOR THIS FOR SOO LONG!😁

  • @gambit3422
    @gambit3422 3 года назад

    i have learned SO MUCH thank you alvin

  • @TakenUsernameAuradium
    @TakenUsernameAuradium 3 года назад

    Something so huge can be teached in this video, that proves that programming isnt hard if you put your head to it

  • @MrLost-ny5li
    @MrLost-ny5li 2 года назад

    i love your videos now im not now an begginer i learn script and so much tysm

  • @AcidicNoodles
    @AcidicNoodles 3 года назад

    I really enjoyed learning from this one

  • @Taintz.10
    @Taintz.10 3 года назад

    Waiting for this one! Already know this is gonna be a banger!

  • @InternetLovin
    @InternetLovin 2 года назад

    this is soooo helpful :) its teaching me the laungage roblox script system uses thanks so much :D your the best

  • @TheGameCrusher922
    @TheGameCrusher922 11 месяцев назад

    i am thankful this video exists

  • @maartenvandermeulen2643
    @maartenvandermeulen2643 Год назад +1

    Maybe I'll finally be able to do more with a script than changing the properties of an object because of these RUclips tutorials

  • @codi.mtblife1894
    @codi.mtblife1894 2 года назад

    your my fav youtuber i hope i can be as good as u at scripting one day my dream is to be pro at scripting like you then do totorials for people:)

  • @choisean2345
    @choisean2345 3 года назад

    this was probably the hardest out of the past 3
    I don't know how to right this in my notes

  • @sababa5661
    @sababa5661 Год назад

    omg i love your vids you explane everything so well

  • @anons7408
    @anons7408 2 года назад

    thanks so much! ive learned so much so far from your tutorials!

    • @AlvinBlox
      @AlvinBlox  2 года назад +1

      Fantastic thanks Eli.

  • @jessicanunez332
    @jessicanunez332 3 года назад

    Im currently on Lesson 20 of your original playlist your amazing!

    • @HDx03
      @HDx03 3 года назад

      You should focus on these latest tutorials as ROBLOX recently changed their coding methods

    • @kadiboudacz5500
      @kadiboudacz5500 3 года назад

      @@HDx03 lol im halfway through finishing his 2019 tutorials, fuck it

    • @jessicanunez332
      @jessicanunez332 3 года назад

      @@HDx03 Good Point.

  • @Katpheesh
    @Katpheesh 2 года назад

    I learned so much in 30 minutes from you than learning things in school for 5 hours

  • @zacomad
    @zacomad Год назад +1

    thx for helping me now i can script :D

  • @tomsterbg8130
    @tomsterbg8130 3 года назад +1

    Awesome video!
    I have been searching quite a while for a proper tutorial on plugins and I didn't see anything that shows how to create shortcuts for plugins. Please if there is a tutorial on this send it to me!

  • @capapofa
    @capapofa Год назад +1

    "The player is an object"
    -Alvinblox, probably

  • @freakdysunday3667
    @freakdysunday3667 3 года назад

    AlvinBlox Voice is starting to get deeper and deeper and deeper idk how and why that happens but his voice was high in 2019 he starting to grow up fast

  • @axcilicon3341
    @axcilicon3341 3 года назад

    yooo im 15 thousandth viewer! that's sick and also I love your stuff alvin! Thanks so much!

  • @catfsh6402
    @catfsh6402 3 года назад

    really love this tutorial so far the best one i have seen yet its just all this trying to learn how to code is frying my brain

  • @precisionaim5954
    @precisionaim5954 3 года назад

    These tutorials are really good

  • @panzer_.
    @panzer_. 3 года назад +1

    Thank you this video is helpful! I learned some things in this video!

  • @JayJay-ki4mi
    @JayJay-ki4mi 2 года назад

    Event: I called a function during working hours
    Boss: You're fired!
    I'll show myself out.

  • @dbzfan81
    @dbzfan81 Год назад +1

    hopefully this helps my friend even after 2 years!!!

  • @FastyonYT
    @FastyonYT Год назад +1

    Hey Alvin do you think that you could make a updated verison of this series?