Events - Roblox Scripting Tutorial

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

КОМЕНТАРІ • 894

  • @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

    • @JustynCK
      @JustynCK 3 роки тому +5

      Bruh fr tho you cant look away at all

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

      lmao so true

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

      Lol same

  • @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 :)

  • @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

  • @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!

  • @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.

  • @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

  • @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

  • @tx_ony230
    @tx_ony230 3 роки тому +15

    Broooo, this man is the best roblox teacher XD

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

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

  • @kadiboudacz5500
    @kadiboudacz5500 3 роки тому +217

    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

  • @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!

  • @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.

  • @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.

  • @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

  • @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?

  • @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.

  • @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

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

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

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

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

  • @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

  • @Kitnick.
    @Kitnick. 3 роки тому

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

  • @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?

  • @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.

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

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

  • @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

  • @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.

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

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

  • @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.

  • @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

  • @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 :)

  • @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.

  • @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.

  • @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

  • @planerunner4020
    @planerunner4020 2 роки тому +1

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

  • @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

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

    have been waiting for this yay

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

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

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

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

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

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

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

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

  • @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!

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

    Im loving this series! Pls keep doing it 😁

  • @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

  • @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.

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

    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!

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

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

  • @kimathi7489
    @kimathi7489 3 роки тому +10

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

  • @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

  • @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!!!!

  • @daaveed2371
    @daaveed2371 2 роки тому +1

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

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

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

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

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

  • @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*

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

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

  • @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.

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

    Finally, a scripting UA-camr 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

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

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

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

    This has been SOOOOOO helpful. keep on at it!

  • @pb.03.
    @pb.03. 2 роки тому +1

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

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

    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

  • @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 :)

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

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

  • @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 3 роки тому

      *p a t h e t i c*

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

      @@Kalvin69 lol

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

    ur the only dude i trust w teaching me this stuff

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

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

  • @Taintz.10
    @Taintz.10 3 роки тому

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

  • @FastyonYT
    @FastyonYT Рік тому +1

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

  • @capapofa
    @capapofa Рік тому +1

    "The player is an object"
    -Alvinblox, probably

  • @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

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

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

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

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

  • @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

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

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

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

    that smell of yummy tutorials :> i can smell it a mile away :> ME WANTTTTTTTTTTTTTTTTTTTTTTTTT

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

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

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

    I sometimes think alvin puts the mic by his keyboard to give his viewers satisfaction

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

    i have learned SO MUCH thank you alvin

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

    omg i love your vids you explane everything so well

  • @MrLost-ny5li
    @MrLost-ny5li 2 роки тому

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

  • @zacomad
    @zacomad Рік тому +1

    thx for helping me now i can script :D

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

    thank you so much for bringing these great videos to us ! Keep going your hard work !

  • @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.

  • @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

  • @dbzfan81
    @dbzfan81 Рік тому +1

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

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

    Hey! Love the vids :)

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

    Nice bro
    Ur so good in deving 😎

  • @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 UA-cam tutorials

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

    I really enjoyed learning from this one

  • @jake.8247
    @jake.8247 3 роки тому

    -Oh and also I subscribed, turned the bell on, liked and commented :)

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

    I used your Starcode! Keep up the great vids!!!

  • @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.

  • @sofa444.
    @sofa444. 3 роки тому

    Me: I watched the whole video
    Alvin: So what did you learn?
    Me: Learn?

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

    This could be a another future video: "I dare you to script the entire UA-cam Simulator Code with Tutorials"

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

    thx alvin blox i know now how to script i watch all of your2019 all videos im working in game rn :D i watch your 2021 videos also pls upload more

  • @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

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

    Thank you for the 2021 updated scripting tutorials Alvin.. Btw the video had a high pitched buzzing noise in the background if you didn't discern.