Functions - Roblox Scripting Tutorial

This tutorial will teach you how to use functions in Roblox Studio scripting, including parameters and arguments. This topic is crucial to understand Events which are coming next!
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

Пікірлер: 892

  • @AlvinBlox
    @AlvinBlox3 жыл бұрын

    Thanks for the support on this series so far everyone :)

  • @SiddharthKSampada

    @SiddharthKSampada

    3 жыл бұрын

    First!

  • @SiddharthKSampada

    @SiddharthKSampada

    3 жыл бұрын

    And also Alvin your tutorials help me soo much Keep making great tutorials like this which helps me and my fellow scripters a lot. TY

  • @windindustries4486

    @windindustries4486

    3 жыл бұрын

    :)

  • @zerodevsz5505

    @zerodevsz5505

    3 жыл бұрын

    First

  • @I_am_thing

    @I_am_thing

    3 жыл бұрын

    Can u friend me on discord Alvin I have a question I_Am_thing#2266

  • @nicolaifeldthaus4649
    @nicolaifeldthaus46493 жыл бұрын

    Yo Alvin, have you ever stopped to think how many people you’ve helped? Thanks alot

  • @priz6751

    @priz6751

    3 жыл бұрын

    First

  • @be8090

    @be8090

    3 жыл бұрын

    Yes

  • @Djjskd

    @Djjskd

    3 жыл бұрын

    Im making a game for my friend birthday and I used free models but I thought what If. I made my own script so I'm starting

  • @thompie6877

    @thompie6877

    3 жыл бұрын

    First reply

  • @godlygamer2466

    @godlygamer2466

    3 жыл бұрын

    @@thompie6877 no u aint

  • @darien-
    @darien-3 жыл бұрын

    I love this guy so much, He's been doing the same series for 3 times now. From the time his voice was so small to a full grown teenager. I have to admit, I'm not an OG fan but I'm still glad I found his channel. Because of him, I made almost 3k robux from 3 seperate games that I made with a help from Alvin's videos. I pretty much quitted being a developer and forgotten all the scripting stuff. But this guy burst in with the tutorials. This can help me on making robux again. If you haven't subscribed, what are you doing in your life man. Alvin movin mad with the tutorials fam 🔥🔥

  • @Real_cheese3

    @Real_cheese3

    2 жыл бұрын

    @CROWN I R i know right ):

  • @hehehehe9104

    @hehehehe9104

    2 жыл бұрын

    @@Real_cheese3 ):

  • @aiky12rsa89

    @aiky12rsa89

    2 жыл бұрын

    amen

  • @firetiger1315

    @firetiger1315

    2 жыл бұрын

    It shows hes committed, he updates his tutorial every few years as roblox studios changes

  • @sausage-gobbler5392

    @sausage-gobbler5392

    Жыл бұрын

    I love your channel

  • @saadusmani78
    @saadusmani783 жыл бұрын

    I want to say thanks to you. I have an interest in working at a space company in the future. And honestly, even though i am not coding much on roblox nowadays, i still have interest in roblox studio, and without it, i probably wouldnt have gotten interested in software engineering. And since u were my 90% source for learning roblox scripting basics, i really want to say thanks. Edit: You have literally affected many people's future, just by making videos.

  • @kestrells

    @kestrells

    Жыл бұрын

    @Salxs Roblox scripting is considered 'easy' and is a good introductory way to get into scripting a step up from scratch

  • @spoopyface

    @spoopyface

    Жыл бұрын

    @@kestrells it depends what you are making

  • @hieu216tdq8

    @hieu216tdq8

    Жыл бұрын

    @@kestrells yep

  • @thedripduck8688
    @thedripduck86883 жыл бұрын

    i love seeing him progress from a kid and still being so helpful

  • @eronkarlvictorino7401
    @eronkarlvictorino74013 жыл бұрын

    i love this series it gets better everytime

  • @sawyermellon8425

    @sawyermellon8425

    3 жыл бұрын

    FIRST

  • @ultra3806
    @ultra38063 жыл бұрын

    thanks for these honestly, I have a year of lua experience now because of your 2020 series

  • @dusty3357

    @dusty3357

    3 жыл бұрын

    lol

  • @namesroger2120
    @namesroger21203 жыл бұрын

    These tutorials help me so much, because Alvin explains them so well, and explains the way the code behaves, meanwhile I just resume the stuff on my book, which helps a ton, thank you Alvin. And don't stop making these, you make for a great teacher.

  • @duckyslay346
    @duckyslay3463 жыл бұрын

    this is so helpful!! i am an "old" roblox dev and moved to JavaScript and forgot how to script with roblox.... This series is so helpful!! Thank you bro

  • @reolizations5331
    @reolizations53313 жыл бұрын

    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?

  • @mantis3069

    @mantis3069

    3 жыл бұрын

    That would be nice

  • @slenderslayer464

    @slenderslayer464

    3 жыл бұрын

    2021 Tutorial didnt ended, maybe he can

  • @curtistrinh5654

    @curtistrinh5654

    2 жыл бұрын

    I know how to do custom rigs and anaimations

  • @adventureboy444
    @adventureboy4443 жыл бұрын

    Yay another tutorial. I am looking forward for it.

  • @AlvinBlox

    @AlvinBlox

    3 жыл бұрын

    Glad to hear :)

  • @crossiscool6681

    @crossiscool6681

    2 жыл бұрын

    Me too

  • @anxryy2469
    @anxryy24693 жыл бұрын

    You explain everything very smoothly and make sure it’s easy to understand. Thank you, I am learning how to script at a fast rate.

  • @Crazy-wu8oj
    @Crazy-wu8oj2 жыл бұрын

    these series are going to help a ton because im trying to work on a game alone not knowing how to code or build things, but now im learning how to code and im taking notes on a note book to make sure i remember it. thank you for this! :)

  • @exomonoko2888
    @exomonoko28883 жыл бұрын

    ive been watching since your 2020 series, nice job man. you do a good job going in depth on nearly everything and im coming back to see what your doing different for the new series :)

  • @detrimentaldoge5464
    @detrimentaldoge54642 жыл бұрын

    I’ve grown an interest in making a roblox game, and this is getting me really excited. The function part looks really cool, and I already understand it thanks to some experimenting in scratch.

  • @yes_people7139
    @yes_people71393 жыл бұрын

    Thank you so much, honestly, I have had game ideas for years and just never understood what to do, but, now I'm getting there little by little because of these videos!

  • @melonsmusicstudio5698
    @melonsmusicstudio56983 жыл бұрын

    Alvin blox, you basicly inspired me to watch ur vids and learn scripting in roblox, which ya’ helped me with along the way. Thank you.

  • @meimark4879
    @meimark48793 жыл бұрын

    Hey Alvin, I was just passing by and saw this video, even though I know lua, i still wanted to check it out, its so nice you help others achieve their dreams

  • @beerusfn671
    @beerusfn6713 жыл бұрын

    i get so excited whenever u come out with a new tutorial

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

    You're helping so much people with these videos on scripting including me. I would not be where I am without you.

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

    I love how much detail you put into your teaching!

  • @yeectc
    @yeectc2 жыл бұрын

    I really love how you put so much information into 10 minute videos!

  • @WRLDPost
    @WRLDPost3 жыл бұрын

    I was looking forward to a new video on functions! I really enjoyed watching this episode!😀

  • @smallsynth
    @smallsynth2 жыл бұрын

    these are suprisingly easy to follow, yet so useful. im not an easy learner at all, sometimes it takes me months to learn stuff in school, but this? thank you so much.

  • @LAT3R
    @LAT3R2 жыл бұрын

    Loved this! You make scripting somewhat fun while educational

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

    I did some other tutorials and this one is the one that explains everything the best.

  • @valkryxdoesdesign
    @valkryxdoesdesign3 жыл бұрын

    Really nice to have an updated version of the beginner scripting tutorial and it's nice your back!

  • @AlvinBlox

    @AlvinBlox

    3 жыл бұрын

    Hey, thanks!

  • @jacehi2u
    @jacehi2u2 жыл бұрын

    Thanks alvin! this years tutorial imo was the best explained out of all and you help me learn simple lua scripting :D so far i know (while true do, if statement, fynctions, properties, how to make a leaderboard, findfirstchild) and so much more that i cant think of rn Thanks man :D

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

    Thank you for making these tutorials. I’ve come a long way in scripting on Roblox. My first scripting tutorials were these. They really helped me out.

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

    Alvin your the goat man. I didn't understand any of this until I watched you. Thank you so much

  • @tartieswife4551
    @tartieswife45513 жыл бұрын

    These are AMAZING tutorials, I literally started coding today and I know a lot more than I thought I would. Your getting a sub!!!

  • @mrbriggs390
    @mrbriggs3902 жыл бұрын

    The vids in this series are literally the only scripting lesson vids I actually understand 😅 so yah Tysm for the awesome vids keep it up ☺️

  • @hopeitworked2974
    @hopeitworked29743 жыл бұрын

    Thanks soooo much for this series it helped SOOO MUCH ur the best person ever in scripting AND you know how to explain VERYYY WELL

  • @anemoicven
    @anemoicven2 жыл бұрын

    Thank you! I’ve been looking for this :D

  • @zengoku6937
    @zengoku69372 жыл бұрын

    I love your videos, they are very simple and understandable. Keep making awesome content!

  • @akiraum9782
    @akiraum97823 жыл бұрын

    Just learned what debugging was. Thank you Alvin.

  • @wokennABC
    @wokennABC2 жыл бұрын

    i am loving how much theses videos help im taking notes on some things in a little book u gained a sub and a like:)

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

    Literally such useful info i love your guides

  • @lav_fico
    @lav_fico2 жыл бұрын

    Thank you a lot, I was trying all things to develop: Animations, UGC, GFX, Building, Modelling. And I never saw this good Script Tutorials.

  • @seanhawkins739
    @seanhawkins7392 жыл бұрын

    Thank you so much for this series! It has let me learn how to script on Roblox!

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

    OMG I JUST REALISED HOW HELPFUL THIS IS, THANK YOU SOOOOM MUCHH

  • @orangebiscuit9560
    @orangebiscuit95602 жыл бұрын

    I didnt know how parameters worked this cleared all my doubts Thank you so muuch

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

    watching your series is the only way i learned how to script thanks man

  • @somerandomperson5314
    @somerandomperson53143 жыл бұрын

    earlyyyyyyyyyy. keep it up alvin! great work! ur going so fast!

  • @SupaThanos
    @SupaThanos2 жыл бұрын

    bro alvin your tutorial is so good learned so much in so little time

  • @fofa4500
    @fofa45003 жыл бұрын

    All you’re videos are so helpful and it’s for free you deserve more subs

  • @thomas-5770
    @thomas-57703 жыл бұрын

    Always appreciate your updated versions of the basics, thanks Alvin.

  • @Typhooone
    @Typhooone2 жыл бұрын

    Hello Alvin! using your coding and the stuff ive learned i made a simple command to say "hello World!" then make a blocks texture pebble, wait 5 seconds then make it clear! thank you for posting these videos!

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

    These tutorials are helping me so much! Thank you

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

    this is the best tutorial ever ive always put off learning to code later since i thought it was going to be hard but this proves otherwise

  • @ArmiRoblox
    @ArmiRoblox2 жыл бұрын

    I've wanted to make my own game since 2015 and I keep giving up and trying again but the videos all are hard to understand 6 years later I started watching you and you've helped a lot thank you so much AlvinBlox! you're the best.

  • @thatonegalazy2350
    @thatonegalazy23503 жыл бұрын

    Alvin your the best I haven’t fully found out how to script but your the only youtuber who’s actually teached me for once

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

    Amazing vid keep up the good work man

  • @cheesyonmobile69
    @cheesyonmobile692 жыл бұрын

    Oh my god thank you Alvin! Because of you I’ve learnt something I never thought I’d learn

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

    thank you so much i wanna be a game dev when i become older and im working really hard to learn how to script and your videos help me alot thanks :)

  • @grileck6094
    @grileck60942 жыл бұрын

    ilysm, you explained it clearly.

  • @jamesisnotabeast8122
    @jamesisnotabeast81222 жыл бұрын

    These scripting tutorials helped me alot! Thank you so much!

  • @TigerMC2

    @TigerMC2

    2 жыл бұрын

    You learnt scripting yet?

  • @Sigh-Clops
    @Sigh-Clops2 жыл бұрын

    This helped a lot, thank you so much!

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

    I sometimes have good ideas for games but i have no experience you are saving my life

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

    Thank you, for teaching us how to create new functions You deserve a sub!

  • @jaystudios4252
    @jaystudios42522 жыл бұрын

    ive allways wanted to learn functions ty!

  • @weenfle7256
    @weenfle72563 жыл бұрын

    I tried to learn how to script sinxe last year but a lot of tutorials went straight to the point and it confused me- this one help me a lot 👌

  • @VOR8EX
    @VOR8EX2 жыл бұрын

    Alvin i dont know what i would do without you :)

  • @shyam8197
    @shyam81972 жыл бұрын

    i have watched millions of scripting tutorial but never understood but i understand only u u are the best

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

    I learned a lot from you and understand the most of things, learning functions are the most useful things if your a really bad typer or your hands hurt while doing typing. I really liked this video and I hope this comment gives you motivation

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

    Thanks! :D It was painful at first, but now, I have got it! :D KEEP IT UP! :DDDDDDDDDDDDDDD

  • @mvpbluesky9820
    @mvpbluesky98203 жыл бұрын

    YAY A TUTORIAL AGAIN IM SUBS AND LIKEEEE LIKE IT SO MUCHHH!!!!!

  • @thatonebob6436
    @thatonebob64362 жыл бұрын

    You make scripting look easy and it’s also easy to learn from you thanks

  • @TheBananaBrothersShorts
    @TheBananaBrothersShorts2 жыл бұрын

    Wow you are the first youtuber that made me hit the bell

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

    thank you dude i had forgotten how to make functions but now i remember how to because i watched 30% of the video

  • @jisooturtlerabbitkim1521
    @jisooturtlerabbitkim15213 жыл бұрын

    ur tutorials are great, i learned a lot ty

  • @hoanghanguyen1410
    @hoanghanguyen14102 жыл бұрын

    You are young but a great teacher. Kudos

  • @bloxify9833
    @bloxify98332 жыл бұрын

    I LOVE THIS CHANNEL! THANK'S FOR TEACHING ME WHAT I LOVE!!!!!!!!!!!!!(Even tho I don't know much yet!)

  • @bricks5045
    @bricks50453 жыл бұрын

    You deserve a lot more views man! Thanks!

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

    yesss i learned do change the Material's function TYSM:)

  • @Vikgrg
    @Vikgrg2 жыл бұрын

    Thanks for helping! You got a new subscriber

  • @Racompilations
    @Racompilations3 жыл бұрын

    This really helps! I really want to make an adventure / rpg related game! So this really helps, thank you! :D

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

    Alvin,u helped me alot thanks u so much I was gonna quit roblox studio but.you changed my mind I see your future being the best roblox employee and my dream is to work with u

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

    thank you so much for the help im learning more of roblox studio

  • @seylahbakez9504
    @seylahbakez95042 жыл бұрын

    used this for reference for my first script, it worked!!! so proud of myself

  • @TrumanSirRender
    @TrumanSirRender3 жыл бұрын

    I liked the graphics you used in the video. Very well explained.

  • @AlvinBlox

    @AlvinBlox

    3 жыл бұрын

    Thanks a lot!

  • @IMVEL0
    @IMVEL03 жыл бұрын

    i was trying to figure out the arg one for so long, tysm

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

    i was confused in the first 2 minutes but then i understand thanks bro this was helpful too :)

  • @soyoc
    @soyoc2 жыл бұрын

    thanks alvin, function is very cool

  • @kgkkoyog7684
    @kgkkoyog76843 жыл бұрын

    You've really helped me alot man

  • @fishplayztoh
    @fishplayztoh3 жыл бұрын

    Thanks a lot this really helped me :)

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

    I gave my test subject a friend, thanks for the tutorial!

  • @deyx_edits
    @deyx_edits2 жыл бұрын

    I'm learning to script rn and these are really helpful!

  • @planerunner4020
    @planerunner40202 жыл бұрын

    Please Continue this series!

  • @kingjulienmonke9929
    @kingjulienmonke99293 жыл бұрын

    Thank you so much for this series I’m working on my first game and it’s pretty big but I have zero knowledge keep up this series for people like me I learn a lot from you more people should be like you tysm

  • @wubbysalmon2072

    @wubbysalmon2072

    3 жыл бұрын

    Don't go for a big project first, start small and work your way up.

  • @ast_jackm1902
    @ast_jackm19022 жыл бұрын

    I love this series

  • @ast_jackm1902

    @ast_jackm1902

    2 жыл бұрын

    I give scripting tutorials

  • @superlightning_yt7655
    @superlightning_yt76553 жыл бұрын

    This is the only video that i havent skipped

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

    Yey! New video!

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

    this guy is so good at teaching roblox code

  • @bloxquiiity3861
    @bloxquiiity38612 жыл бұрын

    I would like to add one somewhat helpful tip to this tutorial! You can simplify the script even more rather than leaving the argument every time with changeTransparency(game.Workspace.AlvinBlox, 0.5) or whatever. We can shorten it using Local and naming the part something simple as it follows : local Subject = game.Workspace.AlvinBlox function changeTransparency(part, newTransparency) part.Transparency = newTransparency end changeTransparency(Subject, 0.5) wait(2) changeTransparency(Subject, 0.75) Hope someone finds this useful! I just thought of it while also trying to pick on learning scripting again watching these awesome tutorials!

  • @wimpyoul4623

    @wimpyoul4623

    2 жыл бұрын

    Thanks a lot! 😀

  • @elomelosky

    @elomelosky

    2 жыл бұрын

    TY

  • @seeroktic

    @seeroktic

    2 жыл бұрын

    Yes, it's simpler, but he most likely didn't do this as he hasn't touched on variables in this series yet.

  • @shikiraunderworld6762

    @shikiraunderworld6762

    2 жыл бұрын

    Thanks, when i did alvins way it didnt work.........

  • @sahedulhasan8453

    @sahedulhasan8453

    2 жыл бұрын

    ​@Varil Celan Worked for me though, you should probably check thoroughly for any mistakes. Something like this happened to me once, I overlooked the mistake and then finally after 10 minutes I noticed it.

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

    Thanks a million! Could never wrap my head around functions.

  • @AlvinBlox

    @AlvinBlox

    Жыл бұрын

    You're very welcome! All the best to you my friend. Alvin

  • @basicallybrand
    @basicallybrand2 жыл бұрын

    I love your vids. so helpful

  • @mycat2781
    @mycat27813 жыл бұрын

    Look tbh you teach very well ty I now understand more thing about functions

  • @jjrollplaysroblox
    @jjrollplaysroblox2 жыл бұрын

    2 year ago i tried learning script but i lost motivation when vids reach 20 to 40+ minutes now i figure that i have passions in building and to build good i must learn scripting so i spent my time rewatching videos and watching all your tutorial and you know you helped me a lot with everything thank you. edit: i have a question I wanted to see if i can make a part repeatedly change do I have to do something that includes *repeat* ?

  • @Corvus_the_wyvern
    @Corvus_the_wyvern3 жыл бұрын

    i watched this yesterday and learned so much i also took good notes but imma listen to it while reading comments.