How To Script On Roblox - 2 (Print and Debugging)

Welcome to your second Roblox scripting tutorial, where today we will be learning about the built-in print function which allows you to write messages from a script to the output window. We will also learn how to debug and solve errors which appear in this output window, a key skill you need to learn and develop while scripting.
Next video coming soon!
Join membership for EXCLUSIVE perks:
/ @alvinblox
SUBSCRIBE to learn how to master Roblox scripting:
kzread.info?sub...
Watch my full beginner scripting series:
goo.gl/k3erz2
Roblox username: Alvin_Blox

Пікірлер: 562

  • @HappyFaceDude
    @HappyFaceDude3 жыл бұрын

    i already know how to use most of the scripts, but all the scripting tutorials were old wich meant some scripts didn't worked as planned, so I'm happy that you are doing the scripting tutorial again

  • @void4932

    @void4932

    3 жыл бұрын

    First

  • @LaughGreatly

    @LaughGreatly

    2 жыл бұрын

    @@void4932 bruh

  • @mysterious9032

    @mysterious9032

    2 жыл бұрын

    @@void4932 bruh moment

  • @roblox_playz6053

    @roblox_playz6053

    2 жыл бұрын

    Could you help me? I don’t understand the tutorials

  • @cyphlone3306

    @cyphlone3306

    2 жыл бұрын

    @@roblox_playz6053 you have to listen every single word he says

  • @Mizeird
    @Mizeird3 жыл бұрын

    These tutorials helped me learn scripting so I could make my own games thank you Alvinblox keep making these video for us to learn

  • @hon3ybunn3yy

    @hon3ybunn3yy

    3 жыл бұрын

    Which game did u make so far

  • @bacon5505

    @bacon5505

    2 жыл бұрын

    Yea

  • @aris1373

    @aris1373

    2 жыл бұрын

    What game did u do

  • @roblox_playz6053

    @roblox_playz6053

    2 жыл бұрын

    Could you help me? I don’t understand the tutorials

  • @baileerife9988

    @baileerife9988

    2 жыл бұрын

    @@roblox_playz6053 Then listen to them

  • @IronBrandon22
    @IronBrandon22 Жыл бұрын

    For anyone having trouble with debugging you can also click the red text in the console/output and it will send you directly to the script and will highlight the line with an error. This is actually very common with game engines, so if you switch to another engine it's likely you will be able to simply click the error in the console. This is also far better then placing a print function on every single line, you should only use the print function to retrieve information about variables. For example: 'print("Part's Material: "..tostring(workspace.Part.Material))' will return the part's material, this way you can make sure the material was set correctly

  • @islandfreerunning9294
    @islandfreerunning92943 жыл бұрын

    Great video Alvin! I've always been wanting to learn scripting from you, but never got around to it. Hopefully I can stick with this series, thanks so much!

  • @explosionvalkyrie700
    @explosionvalkyrie7002 жыл бұрын

    Thanks, without your extremely helpful videos, I would not be a good developer in the world of Roblox's games. A really big thanks from the heart.

  • @katdoestuffYT

    @katdoestuffYT

    2 жыл бұрын

    What games have you made? I want to know

  • @nessarose3234
    @nessarose32342 жыл бұрын

    I finished all of your 2020 series, and your 2021

  • @piyushsinghal9518
    @piyushsinghal95183 жыл бұрын

    I'm waiting for part 3.... Loved the vid!

  • @thepizzalova
    @thepizzalova Жыл бұрын

    Ever since I finished your 2021 series, I finally started understanding variables, printing, events, changing stuff with scripts and stuff like that, now I got a popular game thx to you. You're the absolute best x1000

  • @aziemazie

    @aziemazie

    Жыл бұрын

    and thats where your journey started from a video.

  • @sainonlaptop8426

    @sainonlaptop8426

    Жыл бұрын

    What game is it?

  • @jazenthechosen
    @jazenthechosen3 жыл бұрын

    Thanks for the new upload, Alvin!

  • @katerina.m2329
    @katerina.m23293 жыл бұрын

    Tysm scripting is so important to me as a developer, but i am a beginner

  • @mortyclassify635

    @mortyclassify635

    3 жыл бұрын

    NOice same with me

  • @bingolinging

    @bingolinging

    3 жыл бұрын

    Bruh u didnt even watch 1 second yet

  • @pango529

    @pango529

    3 жыл бұрын

    Same I’m working on a game right now called “Timless Adventures Online”

  • @KK-sm8ez

    @KK-sm8ez

    3 жыл бұрын

    Me too

  • @ritte2279

    @ritte2279

    3 жыл бұрын

    Same I'm a beginner as well.

  • @GoombaEdits
    @GoombaEdits2 жыл бұрын

    wow i was so happy since that was the first time i ever scripted in my life i wanted to scream that it worked and these tutorials make so much sense thanks alvinblox!

  • @wanderingcrusader635
    @wanderingcrusader6353 жыл бұрын

    I just started to ''Attempt'' to code in Lua so it's nice having a good out there, I'm exited for the next vid.

  • @66problems31
    @66problems313 жыл бұрын

    Hey Alvin, I just wanted to say thanks for these tutorials, Just the fact that you are giving up time to help other people is amazing :D Have a great day. (Even tho you are making money ;D )

  • @Uh60blackhawk467
    @Uh60blackhawk4673 жыл бұрын

    Thx Alvin. I’m a fan! Edit: I liked!

  • @void4932

    @void4932

    3 жыл бұрын

    First

  • @Trazor_

    @Trazor_

    3 жыл бұрын

    👍

  • @dannymast33r42

    @dannymast33r42

    3 жыл бұрын

    Can I have a mobile tutorial

  • @thatoneasian3076

    @thatoneasian3076

    2 жыл бұрын

    @@dannymast33r42 you can’t do Roblox studio on mobike

  • @089roblox1
    @089roblox13 жыл бұрын

    I'm waiting for the claim your ticket comments.

  • @firstlast9731

    @firstlast9731

    3 жыл бұрын

    o

  • @firstlast9731

    @firstlast9731

    3 жыл бұрын

    k

  • @pachurro2762

    @pachurro2762

    3 жыл бұрын

    claim your claim your claim your ticket here

  • @TheRealOderless635gnat

    @TheRealOderless635gnat

    3 жыл бұрын

    @@pachurro2762 how much does it cost I will give you a trillion dollars because a trillion dollars is so cheap anyone can afford it Jk

  • @aiden654

    @aiden654

    Жыл бұрын

    bing bong chong lang

  • @elusivedeveloper
    @elusivedeveloper3 жыл бұрын

    I can't wait till next video! This tutorial is also awesome!

  • @apannisseberg3154
    @apannisseberg31543 жыл бұрын

    Omg i have been waiting for this!

  • @ScriptFedora
    @ScriptFedora3 жыл бұрын

    Thanks, this is the first tutorial that actually helped me understand scripting. I'm gonna watch these tutorials until I will finally know how to script.

  • @Red-yf9el

    @Red-yf9el

    2 жыл бұрын

    Did you learn?

  • @lazergaming5652

    @lazergaming5652

    Жыл бұрын

    did you learn yet?

  • @cabellmercer
    @cabellmercer3 жыл бұрын

    I wish you could upload one of these everyday. Really clear and concise video. I plan on watching the whole series and hopefully by the end I can get somewhere and make stuff. I consider myself a pretty advanced builder but all of my stuff seems useless without being able to make it work.

  • @sgnittnes7601

    @sgnittnes7601

    3 жыл бұрын

    have you built anything yet?

  • @mcallahk
    @mcallahk3 жыл бұрын

    I never really thought about what printing was good for until I learned that it could help with debugging. Thanks for this video!

  • @ChaosForgers
    @ChaosForgers2 жыл бұрын

    Thanks again i cant wait to watch the next part am becoming good in scripting with your videos alvin thanks :)

  • @kimathi7489
    @kimathi74893 жыл бұрын

    another awesome tutorial from Alvin! I can’t wait to see what’s to come after this one!

  • @void4932

    @void4932

    3 жыл бұрын

    First

  • @hjomnk4056

    @hjomnk4056

    3 жыл бұрын

    @@void4932 Nobody cares lmao

  • @roblox_playz6053

    @roblox_playz6053

    2 жыл бұрын

    Could you help me? I don’t understand the tutorials Could you help me? I don’t understand the tutorials

  • @neelimarosekujur8061
    @neelimarosekujur80613 жыл бұрын

    Thanks for 2nd part that was a good strategy! I can't wait when I will master scripting then I can make games keep it up you are doing awesome (Also do you have a starcode?)

  • @sirthumple7494
    @sirthumple74943 жыл бұрын

    Nice to see another series like this.

  • @mxrsh._.
    @mxrsh._. Жыл бұрын

    tysm AlvinBlox these videos help me with my games and I can even find errors and fix it easier!

  • @roaqua
    @roaqua3 жыл бұрын

    These are actually super helpful! I'm a dev I mainly do building, but would like to start scripting to make my own games. So these help a ton. Thank you!

  • @roblox_playz6053

    @roblox_playz6053

    2 жыл бұрын

    Could you help me? I don’t understand the tutorials

  • @caution9735

    @caution9735

    2 жыл бұрын

    @Nino do u know how to do the middle dot next to the equal sign that Alvinblox did?

  • @charliewilson378

    @charliewilson378

    2 жыл бұрын

    @@roblox_playz6053 just type what he types

  • @doormat-wr9su
    @doormat-wr9su2 жыл бұрын

    Thanks for the tutorials, they are very helpful and not hours long. Very good

  • @HamCraft
    @HamCraft3 жыл бұрын

    Thanks alvin blox for the tutorial😊. Really helpful.

  • @yourfellowgamer487
    @yourfellowgamer4873 жыл бұрын

    YES! He is making another beginner tutorial series! (I was with him ever sense his voice was high pitched)

  • @agentperihelion6714
    @agentperihelion67142 жыл бұрын

    good tutorial, easy to follow, paced nicely, very much quality

  • @sponjbope
    @sponjbope3 жыл бұрын

    Cool! I've been trying to learn scripting the past 6 months, i quit because i couldnt understand much before but i think its time to learn it.

  • @ethanmellor5312
    @ethanmellor53122 жыл бұрын

    Thanks! Another Great Tutorial!

  • @pitifuleternal
    @pitifuleternal2 жыл бұрын

    These tutorials have been helpful, Definetly using them for future games i might create.

  • @VolaazRBLX
    @VolaazRBLX2 жыл бұрын

    Was really useful Im a new starter in like scripting and stuff and I actually have alot of mistakes as a newbie and this has helped me alot you deserve alot of subs and likes.

  • @TommyTurdTrousers
    @TommyTurdTrousers3 жыл бұрын

    I love these videos man keep going

  • @ampro9019
    @ampro90192 жыл бұрын

    Alvin thank you for making beginners learn scripting, i am currently learning these right now

  • @RainyPlaysRoblox
    @RainyPlaysRoblox2 жыл бұрын

    Love these videos a ton man ur the best

  • @pringles7285
    @pringles72852 жыл бұрын

    Wow So far you have helped me so much! You earned my sub and like!

  • @Lobrixx1
    @Lobrixx12 жыл бұрын

    My man, you helped me a lot learning to script! now I can finally brag to my friends about scripting :)

  • @Minerage
    @Minerage2 жыл бұрын

    These are actually good and I only watched one and love it!

  • @Irha2420
    @Irha24202 жыл бұрын

    these 2 videos have been helping me

  • @steviestormtrooper6207
    @steviestormtrooper62072 жыл бұрын

    I love your videos, keep up the great work, learned a good amount.

  • @rayanimate9135
    @rayanimate91353 жыл бұрын

    you're videos are the best! Thanks!

  • @BloxNite288
    @BloxNite2883 жыл бұрын

    I have watched the 2020/2019 scripting series and not gonna lie I learnt a ton and I will also watch this series so that I can learn more even if it's basics

  • @jahredmatthewsuarez7473
    @jahredmatthewsuarez74732 жыл бұрын

    this is actually really usefull thanks alvin :ps im on a streak xd going to ep 3 now

  • @BoomRec
    @BoomRec2 жыл бұрын

    Keep up the hard work. I'd say u deserve 100k subs. Acctualy a bit more

  • @MrBaconPal
    @MrBaconPal3 жыл бұрын

    i learned a few of scripts anyways thank you Alvin Blox

  • @vastlysucks
    @vastlysucks2 жыл бұрын

    that printing trick was pretty cool nice job

  • @bxtrrrrr2099
    @bxtrrrrr2099 Жыл бұрын

    i did my first ever script and it was just simply making the transparency of the part to 1 once you spawn in thank you :)

  • @DOGEKING956
    @DOGEKING9563 жыл бұрын

    Love your vids keep it up they help me a lot

  • @RoidoStuff
    @RoidoStuff3 жыл бұрын

    YESS THANKS ALVIN I CAN NOW CONTINUE ON LEARNING SCRIPTS EP 3 IS HYPED

  • @hollyplaysroblox8714
    @hollyplaysroblox8714 Жыл бұрын

    Thankyou bro you made my life easier w these tutorials 😭

  • @ahmetpvp1508
    @ahmetpvp15083 жыл бұрын

    thx you so much for make part 2

  • @hieppham2350
    @hieppham23503 жыл бұрын

    This was a very nice video, I never thought of using print as a message to say that your script has failed. Also, can you make a video about using "local =" ?

  • @fatherrob7298
    @fatherrob7298 Жыл бұрын

    he scripting tutorials are short and he just straight up gives us a quick lesson of what we need to do.

  • @MatteoP04ita
    @MatteoP04ita3 жыл бұрын

    Nice tutorial. I hope you will make more videos about advanced scripting

  • @alphawolfie9119
    @alphawolfie91193 жыл бұрын

    it was rlly helpfull, thanks again!

  • @zen4915
    @zen49153 жыл бұрын

    yessir learning bois you gotta love it

  • @ImUkoo
    @ImUkoo3 жыл бұрын

    Keep up the good work Bro 👍

  • @dexterwallace2586
    @dexterwallace25863 жыл бұрын

    Thanks good beginners video really gonna help out!

  • @itsdoggo326
    @itsdoggo3263 жыл бұрын

    Alvin, thank you very much for helping me script! I'm a little bit close to being an advanced scripter now! Now knowing many things. If you can, it would be great if you can do a tutorial on string. (Ex. string.sub, string.find, etc)

  • @stojinator6260
    @stojinator6260 Жыл бұрын

    Thank you very much Alvin!

  • @joey4life201
    @joey4life2013 жыл бұрын

    Hey this helped me I was a advanced scripter in 2020 but they changed it so I have to learn again.

  • @ceedidthat.
    @ceedidthat.3 жыл бұрын

    Thank you for the awesome tutorials. I really wanted to learn scripting recently and you started making these just at the right time

  • @Clip_Caster1
    @Clip_Caster12 жыл бұрын

    Thank you so much for making these videos I’ve always tried to be a popular creator and these are helping a lot

  • @winton4496
    @winton44962 жыл бұрын

    This guy deserves another sub :)

  • @ampzy3674
    @ampzy3674 Жыл бұрын

    Bro I understand scripting for once thanks a lot Alvin

  • @Connor-oy6ez
    @Connor-oy6ez3 жыл бұрын

    I feel like you should of moved this into episode 1 since it's very easy to write a print message even for a new coder like me. But thanks for episode 2 and 1 It helped me write my first piece of code I made by myself with out googling anything to make it. The code makes a loop that changes the part's material.

  • @phoenix9203
    @phoenix92032 жыл бұрын

    this is so cool your amazing at this

  • @largem8md965
    @largem8md9653 жыл бұрын

    I can't wait to see episode 3

  • @breenud39tv
    @breenud39tv3 жыл бұрын

    Great video, is it possible for you to go over some common errors that get printed in the output and what they usually mean? Thank you!

  • @xxgrox7082
    @xxgrox70823 жыл бұрын

    First one to like and thank you I have been watching since the start of your channel

  • @geminitoast7836
    @geminitoast78363 жыл бұрын

    thx alvinblox that really helped

  • @Hengoose
    @Hengoose2 жыл бұрын

    Wow! Thanks to you i know the use of print

  • @voidpoint2798
    @voidpoint27983 жыл бұрын

    These video are amazing!

  • @demi-co6341
    @demi-co63413 жыл бұрын

    thank you so much AB, i couldn't have made my brothers and my dream game

  • @kfer2129

    @kfer2129

    2 жыл бұрын

    why did you made your brothers

  • @draken6497

    @draken6497

    2 жыл бұрын

    what game

  • @roblox_playz6053

    @roblox_playz6053

    2 жыл бұрын

    Could you help me? I don’t understand the tutorials

  • @OZIking56
    @OZIking56 Жыл бұрын

    thanks man i highley apperciate it love ur content

  • @AlvinBlox

    @AlvinBlox

    Жыл бұрын

    Thanks dude, all the best to you

  • @breakd.limits8475
    @breakd.limits84752 жыл бұрын

    I already graduated on your video like this like 2 years ago im here to recall what i learn cause i stop learning for a year

  • @Vaflinis
    @Vaflinis3 жыл бұрын

    Be a IT teacher my guy! YOU ARE JUST TOO GOOD! xD

  • @acestudios7755
    @acestudios77553 жыл бұрын

    Bro you help me so much now i know when im doing somthing wrong.

  • @objectshowfanfrcanconfirm
    @objectshowfanfrcanconfirm2 жыл бұрын

    Thanks dude, my friends and I are making a game and I dont know coding so this is really really helpful! (even more helpful because im the coder)

  • @mansan7528
    @mansan75283 жыл бұрын

    Very good and intresting video! I am trying to watch all videos on your channel cause I really wanna learn how to code. You are teaching very good! Next video suggeston: How to make npc's that can talk.

  • @Cookie-qo4qh
    @Cookie-qo4qh2 жыл бұрын

    printing was not useful for me but the 1st episode about properties was useful for me, good job

  • @SuperHraza
    @SuperHraza2 жыл бұрын

    It’s 2:51 AM right now and I’m still up watching this guys videos.

  • @_butter.
    @_butter.2 жыл бұрын

    I made many sarcastic messages using print, thanks for the tutorial

  • @JonatasMateus69
    @JonatasMateus693 жыл бұрын

    Thanks, Im kinda advanced compared to this XD. I cant wait for the hard ones. Cant wait

  • @healthylivinginformer7506
    @healthylivinginformer7506 Жыл бұрын

    Thanks this helped me so much

  • @s1nnx346
    @s1nnx346 Жыл бұрын

    Thank u It Really Helps

  • @offimoo9995
    @offimoo99953 жыл бұрын

    FIRST! Alvin you are the best!

  • @mushytoast_

    @mushytoast_

    3 жыл бұрын

    ur first bro

  • @Venom_Bruh
    @Venom_Bruh Жыл бұрын

    I Really need to know this for my game so thanks!

  • @jackhastoomuchfreetime
    @jackhastoomuchfreetime3 жыл бұрын

    I already know how to do all this and script, but its always good to get a refresh, also its good background noise

  • @CloudyCow_
    @CloudyCow_ Жыл бұрын

    You're asking my questions thank you

  • @risker5161
    @risker51612 жыл бұрын

    U make us understand very nicely

  • @toaster3331
    @toaster33312 жыл бұрын

    thank you you are really helping me

  • @peterplays6972
    @peterplays69722 жыл бұрын

    This is so helpful

  • @Nosallowed
    @Nosallowed3 жыл бұрын

    Keep uploading this kinda stuff

  • @RoidoStuff
    @RoidoStuff3 жыл бұрын

    Tanks alvin finished the video

  • @rusuovidiu6255
    @rusuovidiu62553 жыл бұрын

    Everyone watching this, go check his 2019-2020 tutorials, they are THE BEST.

  • @bustlecritter4038

    @bustlecritter4038

    2 жыл бұрын

    Hello from da future. R they outdated I mean like old?

  • @yassinsamir4508
    @yassinsamir45083 жыл бұрын

    I swear that's so helpful

  • @moatasem2727
    @moatasem27273 жыл бұрын

    All helped me and I can help my friends!