Task Functions (wait(), spawn(), delay()) - Roblox Advanced Scripting #4

  Рет қаралды 45,869

BrawlDev

BrawlDev

Күн бұрын

Пікірлер: 149
@BrawlDevRBLX
@BrawlDevRBLX 7 ай бұрын
🎁Get Access to my Scripts + More Perks by Becoming a Channel Member! 👇 www.youtube.com/@BrawlDevRBLX/join
@Pumpkuun
@Pumpkuun Жыл бұрын
I love how you actually visualize what the code does instead of just telling, that really helps. Thank you.
@CoffeDaily
@CoffeDaily 3 ай бұрын
I agree
@brockwilson4108
@brockwilson4108 Ай бұрын
I'm a software engineer with a CS degree. Your way of explaining things is very thorough and you're very good at ensuring what you say comes across clearly and you address any potential confusions. You can see the problems in other peoples' understanding without (at least currently) having the issue yourself. I had many professors in college for my degree, and only one of them was able to explain concepts like you. I hope you can be grateful for how rare your talent is, there are truly very few people in this world that are capable of it! While I personally don't need all of the explanation and am primarily here for understanding the syntax, I am extremely impressed with your depth of understanding and communication talent. I know for a fact that your channel will only grow exponentially, as you're the only one who can do it flawlessly and seemingly effortlessly.
@Unseensnipers556
@Unseensnipers556 9 ай бұрын
I’ve hunted the internet for help and this is the best thing I’ve ever seen it explains it and show you how to do it and it works this man deserves more subs and views I would share with my freinds but they’ll make fun o fame for playing roblox
@pr0doxz410
@pr0doxz410 Жыл бұрын
HOW DO YOU ONLY HAVE 70 SUBS. When i first saw your vid i thought u had atleast 20k+ due to the quality. These tutorials are better than 95% of the ones i have seen and they have taught me a lot. Keep upploading, u got a new sub!
@RandomCat245
@RandomCat245 4 ай бұрын
this aged well
@pr0doxz410
@pr0doxz410 4 ай бұрын
@@RandomCat245 im an OG lol
@RandomCat245
@RandomCat245 4 ай бұрын
@@pr0doxz410 I saw that
@BlueTheCrew
@BlueTheCrew 4 ай бұрын
@@pr0doxz410 dang he must've gotten a huge subscriber spike
@maidhall1699
@maidhall1699 4 ай бұрын
@pr0doxz410 are you a pro scripter now?
@OSoloman
@OSoloman Жыл бұрын
Dude, That was the best analogy ever! I literally can't find any tutorials better than these. Thank you so much
@BiIinear
@BiIinear Жыл бұрын
great tutorial, honestly explained it clearly, i was expecting something unclear like 'academic speak' or dragging on explanations like most roblox tutorials do, but now I know what delay() and defer() does. i appreciate the conception part too lol
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
Glad you thought it was helpful! I definitely agree that this conception sequence was my favorite one!
@wxrm
@wxrm 9 ай бұрын
I really want to thank you for these tutorials. I'm a visual learner, so it is incredibly helpful seeing visual examples instead of a brief vocal explanation!
@ItsZyonic
@ItsZyonic Жыл бұрын
great tutorial bro, great quality and explanations 👍
@fenveer
@fenveer Жыл бұрын
First of all, great video, have my sub :) Second of all, for anyone who is confused by task.defer(), all it does is take a task and put it as the lowest priority task.
@AshwinIslam
@AshwinIslam Жыл бұрын
within the first 2 minutes I already learned 2x more than what i learned from everything else i had looked at
@Rashey3
@Rashey3 Жыл бұрын
fr i tried many coruses and didnt help me at all it was just some basic obby but this explains everything
@KingOfOwls23
@KingOfOwls23 Жыл бұрын
Really great explanation, helped me out thanks.
@Thomas-e6m1r
@Thomas-e6m1r Ай бұрын
you got a sub from me , keep on making great videos
@lavastone3D
@lavastone3D Жыл бұрын
yo bro love the content the way you teach is so helpful
@MeowToonYT
@MeowToonYT Ай бұрын
Brawldev is one of the few youtubers who actually put effort on their videos, and not just yap and expect 5 year olds clicking into video.
@Awz_Saint
@Awz_Saint Жыл бұрын
I love your content. Keep it up!
@azurethpat
@azurethpat Жыл бұрын
The DragDector use is so cool for the visuals! (and the video itself lol)
@Thomas-e6m1r
@Thomas-e6m1r Ай бұрын
other roblox studio tutorials just yap on , this is the best one out there because you can really understand well
@Yokunnnn
@Yokunnnn Жыл бұрын
Wow! I'm very impressed by your explaination... Well done!
@Karlson-d6c
@Karlson-d6c 6 ай бұрын
I really like how you can slide the blocks around thats cool! Keep up the good work! I also subscribed beacuse you got me so for from the begginers scripting to here!
@exploder4017
@exploder4017 15 күн бұрын
Ik you arent going to see this but brawldev, you are the only person to actually help me on this. I always wanted to know how things work and you really helped that. You are really helpful and its actually entertaining.
@bramvenhorst2028
@bramvenhorst2028 Жыл бұрын
I would love to see the couritine tutorial
@BadRobloxDev-yu2dc
@BadRobloxDev-yu2dc Жыл бұрын
same tbh
@NominoDev
@NominoDev Жыл бұрын
He made one !
@bonkser
@bonkser 9 ай бұрын
but its worse spawn
@user-by8wu8ph8t
@user-by8wu8ph8t 7 ай бұрын
@@bonkserno corutine is better than
@Monkey-c4z
@Monkey-c4z 3 ай бұрын
Do you mean quarantine? I’m confused
@AydenBarrow-j2p
@AydenBarrow-j2p 3 ай бұрын
The conception is very unique. Like it!
@JoulesRblx
@JoulesRblx 3 ай бұрын
OMG this is the best vid I’ve ever seen Thx so much u us don’t understand how much u helped me!! I ve been searching for DAYSS
@gluemid
@gluemid Жыл бұрын
I rank you In #2 of best ROBLOX tutorial channel!
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
I WILL BECOME #1 😈
@ArdaPOLAT-n3x
@ArdaPOLAT-n3x 8 күн бұрын
dude who is first?
@materwelone6026
@materwelone6026 Жыл бұрын
The analogy was great, you're very good at explaining things!
@AnonymousWatcherAmigo
@AnonymousWatcherAmigo 2 ай бұрын
I loved the way you gave us a example at the start keep it up!
@salihsarii
@salihsarii 24 күн бұрын
Before watch , Like it :)) Thanks man
@sannin4569
@sannin4569 5 ай бұрын
bro im crying 😭the way he just starting flinging the blocks after a crystal clear explanation
@Tc2_Moreless
@Tc2_Moreless 10 ай бұрын
Honestly this dude is underrated
@mrjamp9549
@mrjamp9549 Жыл бұрын
SO UNDERRATED AND WELL EXPLAINED!!! +1 sub and +alot respect
@kelpR
@kelpR 11 ай бұрын
such a good tutorial, thx!
@kebbelpebble
@kebbelpebble Ай бұрын
Summary for Defer 14:37 -> It will be the last code to run after all the other lines of code has been run , even if the defer statement was before some of the other functions / code
@aqibshariff7558
@aqibshariff7558 19 күн бұрын
thanks but whats the difference of using task.defer and putting that line of code at the bottom
@kebbelpebble
@kebbelpebble 19 күн бұрын
@aqibshariff7558 its the same
@aqibshariff7558
@aqibshariff7558 18 күн бұрын
@@kebbelpebble alr ty
@KnightzzzXzack
@KnightzzzXzack 9 ай бұрын
U deserve a sub Well done 🎊
@KnightzzzXzack
@KnightzzzXzack 9 ай бұрын
Btw if u see this u make my pc crash with the defer 10k thing
@JohnPaul-v2f
@JohnPaul-v2f 7 ай бұрын
@@KnightzzzXzack LMAO-
@hlflifeenjoyer6176
@hlflifeenjoyer6176 9 ай бұрын
this really helped thank you
@CtrlGame
@CtrlGame 19 күн бұрын
best explination so far about tasks !!!!!!!
@KittyMeow0405
@KittyMeow0405 Жыл бұрын
I Use Delay A Lot Now Tysm It Helps I Needed This Tysm
@beexmas
@beexmas Жыл бұрын
can you do a video on the camera?
@LeProffeseurFOU
@LeProffeseurFOU Жыл бұрын
Man, believe me when I say you saved me a lot of time
@leandruss
@leandruss Жыл бұрын
Your tutorials are fire how the hell did you come up with such a good way of explaining it.
@WhoLetsBludCook
@WhoLetsBludCook Ай бұрын
Great guide !!! But in the end what does a thread and multithreading mean when you mentioned it in summary ?
@salthal
@salthal Жыл бұрын
very easy to understand 10/10
@ThePenguinXD
@ThePenguinXD 2 ай бұрын
Thank you soo much !!!
@SoollzPlays
@SoollzPlays 10 ай бұрын
i needed this
@Zarpulsion
@Zarpulsion 5 ай бұрын
just some extra info when you use wait or task.wait or any kind of yielding function which are functions that tell the script to stop or pause task.defer will run at the end of the yield task.defer runs at the end of a codeblock and the script intrepretes a thread which is a group of tasks as finished when a yield happens which task.defer detects therefore running the code if theres no yield anywhere after task.defer was used it just runs at the end of your script edit: i was a little incorrect it seems threads are a independent sequence of execution kinda how task.spawn() allows you to run code along with your script by doing that it creates a new thread i believe i was correct on everything else though but please correct me if im wrong im still learning
@LucieKitsune
@LucieKitsune 7 ай бұрын
Amazing, finally someone who doesn't use "wait()" and actually explain and teach people to use "task.wait()"
@devandyEsp
@devandyEsp 8 ай бұрын
So task.spawn is like a trash can with the garbage inside of it that will get rid of once that you don’t need it automatically?
@FoxingAboutAndStuff
@FoxingAboutAndStuff 7 ай бұрын
This is literally the best Roblox coding video I have ever seen... and I have a playlist with 88 of them, so I should know.
@SoollzPlays
@SoollzPlays 10 ай бұрын
Easy to understand, and Easy Ideal taskfunctions for my game
@Username8281
@Username8281 2 ай бұрын
Gooooood
@Panaox
@Panaox 7 ай бұрын
Guys task.wait is it the same as wait? or each one has his own job
@lukeluke783
@lukeluke783 Жыл бұрын
UNDERRATED AS F**k
@can_nonball
@can_nonball Ай бұрын
you are a LIFESAVER
@crapz2395
@crapz2395 7 ай бұрын
Another great video!!!
@Teil
@Teil 2 күн бұрын
"Allright, lets think about this for a minute!" 🤓☝
@Garra-BrawlStars
@Garra-BrawlStars 8 ай бұрын
I wanted to make a roblox game but i couldn't because i didn't understand but your videos helped me a lot, thanks
@nothing-lo8lh
@nothing-lo8lh Жыл бұрын
Info: In case you know about wait(), delay() or spawn() but don't know whats the difference between those and task.wait()..., basically the task. functions are superior. Look it up if you want to know more.
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
this is true
@StudioScriptBuilders-fb9bu
@StudioScriptBuilders-fb9bu 3 ай бұрын
I know this is a bit late, but I see that you have a font for your code editor. How did you get that and how can I get mine to look like that?
@ExoticFoxy
@ExoticFoxy Жыл бұрын
Bro what was before 2:36 tf i watched
@MyNames_55
@MyNames_55 Жыл бұрын
When exactly do you use task.spawn() over coroutines? They both seem to have the same functions, but what's the advantage of one over the other?
@yadorist
@yadorist 6 ай бұрын
TYSM OMG I WERE LOOKING FOR THING TO RUN COUPLE OF FUNCTIONS!! I TRIED COROUTINES BUT ITS TOO HARD FOR ME SO I LL BE USING TASK FUNCTIONS!!! OMG TYSMMMMM!!!!!💕💕🛒🛒💕💕💕💕💕💕💕💕💕💕💕💕
@guyug6940
@guyug6940 Жыл бұрын
Amazing
@Mr.Pegumin
@Mr.Pegumin 7 ай бұрын
Damn, now this is what I call quality.
@kappakoko
@kappakoko 27 күн бұрын
did not know task.delay() existed, now I have an AI that just spams coroutines like crazy…
@aviator278real
@aviator278real Ай бұрын
1:05 Wendy’s
@zonatemaster2329
@zonatemaster2329 Жыл бұрын
This is useful
@benmaderer7960
@benmaderer7960 4 ай бұрын
when im watchin this when the vid is 9 months old and its still helpfull :)
@spritesalsa631
@spritesalsa631 Жыл бұрын
Would task cancel be used primarily with if statements if you have 2 tasks set up and want to cancel one of them if they don't meet the requirements?
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
I would think that to be the case if a certain condition has been met, that's when I would cancel the task if it doesn't need to execute all the way through.
@googledoggoogledog
@googledoggoogledog 2 күн бұрын
GREAT JOB
@Appolo-dw7hi
@Appolo-dw7hi 7 ай бұрын
Thanks i learnt now
@noic7991
@noic7991 Жыл бұрын
Can you make a video on Module Scripts and how to use them!, Ive watched other tutorials but cant seem to understand them.
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
Will happen soon in the series!
@Gavintalks2.0
@Gavintalks2.0 6 ай бұрын
Can you talk about task.sychonize() and task.desychonize()?
@horizon2s
@horizon2s 11 ай бұрын
i thought this dude had like 300k subs with good views bro is underrated as hell.
@Superdashytb
@Superdashytb Жыл бұрын
Hum, what is the difference beetween wait() and task.wait() ?
@OSoloman
@OSoloman Жыл бұрын
task.wait is when u need to wait when you have a script with lots of tasks. wait() is for anything else. wait is kinda global and task.wait is local. i think, im new to scripting though.
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
its pretty simple, wait() is deprecated and is not recommended for future use. Other than that, they basically do the same.
@nothing-lo8lh
@nothing-lo8lh Жыл бұрын
@@BrawlDevRBLX It's not really deprecated but yes, task.wait() is superior.
@nothing-lo8lh
@nothing-lo8lh Жыл бұрын
Turns out, I'm wrong. It is deprecated I just used outdated or incorrect knowledge.
@Aorai7
@Aorai7 9 ай бұрын
So in summary, task.defer is executed at the end of the script?
@zeekboyz806
@zeekboyz806 Жыл бұрын
how do you make any part can be draggable?
@BrawlDevRBLX
@BrawlDevRBLX Жыл бұрын
It's one of roblox's newest features called DragDetectors! Pretty interesting to use
@maxymusgamer9900
@maxymusgamer9900 8 ай бұрын
Hello BrawlDev! I tried to do task.defer myself, and I wanted to ask: is it ok if my deferred task runs as not the last function? I mean, it ran the 2nd last.
@BrawlDevRBLX
@BrawlDevRBLX 8 ай бұрын
Not entirely familiar with it since I personally don't use it. But I'd say it's normal that it doesn't guarantee it being the last running task. Thx for asking!
@gopark123
@gopark123 7 ай бұрын
mine ran after the first loop of the for-loop haha
@googledoggoogledog
@googledoggoogledog 2 күн бұрын
Keep firing this
@West_Deal
@West_Deal Ай бұрын
you are the best
@magicscripter1000
@magicscripter1000 9 ай бұрын
what practical use could I use of this?
@alfieninjja4055
@alfieninjja4055 9 ай бұрын
6:44
@TrackCrack735
@TrackCrack735 4 күн бұрын
this is what school is like (in a good way)
@Dev-Flame
@Dev-Flame 5 ай бұрын
Tysm
@Username8281
@Username8281 3 ай бұрын
Amazing
@themainejermaine
@themainejermaine Жыл бұрын
very cool
@certified_wiseposter
@certified_wiseposter 7 ай бұрын
how did you move the blocks? that was pretty clean
@BrawlDevRBLX
@BrawlDevRBLX 7 ай бұрын
DragDetectors!
@THIRD0612
@THIRD0612 Ай бұрын
@@BrawlDevRBLXyeah it was cool! You are a very good teacher! :D have a great day if ur reading this👑
@TheFinalBossRudy
@TheFinalBossRudy 7 ай бұрын
now I'll be puting task.spawn anywhere there is a loop
@jackdan1811
@jackdan1811 7 ай бұрын
Hi, while i understand the video, can I ask why roblox developers prefer task.wait() over simply the wait() function? Thank you even if you don't reply.
@nicholasfreeman
@nicholasfreeman 10 ай бұрын
what does task do? cuz like I know you can normally just do wait(), or delay(), without task.wait, or task.delay, but like its not as good
@brunokhoudiakov
@brunokhoudiakov 9 ай бұрын
Task is that exact task basicly
@Sky_Blue_Crew
@Sky_Blue_Crew 5 ай бұрын
You should make an episode about the Camera.
@Test_749
@Test_749 Ай бұрын
wait() is for 32bit operating systems and task.wait() is for 64bit
@Test_749
@Test_749 Ай бұрын
or something like that
@muhammadfaizan5856
@muhammadfaizan5856 4 ай бұрын
what's the difference between task.wait() and wait()
@ansjsj3ensudka
@ansjsj3ensudka 4 ай бұрын
wait is like "OLD" so everyone use task because is more precise
@ItzRealImro
@ItzRealImro Ай бұрын
​@@ansjsj3ensudkacan include better performance
@izan7925
@izan7925 2 ай бұрын
Goated
@enriqueperez5726
@enriqueperez5726 Жыл бұрын
Hello! My name is Enrique. A pleasure. I have seen your videos and I am extremely delighted with them. I would like to know if you would like to work on developing an experience that is almost ready; What it really lacks is someone to bring it to life with the codes. If interested, let me know! I will be happy to give you more details. Many successes!
@ChingChongRiceLover
@ChingChongRiceLover 3 ай бұрын
hi brawlbattle
@guilhermefranzman
@guilhermefranzman 11 күн бұрын
tem mais algume do brasil sacrificando as legendas em portugues?
@fujiwaranonekobiodrando1257
@fujiwaranonekobiodrando1257 4 ай бұрын
Activate Windows?
@Champlo_0
@Champlo_0 6 ай бұрын
#1 teacher
@--Brick--
@--Brick-- 7 ай бұрын
W tutorial
@JohnPaul-v2f
@JohnPaul-v2f 7 ай бұрын
i dont get task defer T.T is it like used for debugging or idk i think im so far from the actual answer its ujst confusin for me
Pixel Art Tips from a Professional Artist - Tips & Tricks
8:01
Goodgis
Рет қаралды 1,1 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
I Made a Game That Deletes Itself When You Lose
9:31
Rye
Рет қаралды 661 М.
How To Master Roblox Scripting (Even If You're Lost!)
6:55
SmartyRBX
Рет қаралды 40 М.
100 DEVS Make a GAME without COMMUNICATING! (76-100)
33:01
Blackthornprod
Рет қаралды 573 М.
Roblox Devs, stop misusing :WaitForChild()!
17:13
Crusherfire
Рет қаралды 78 М.
How Unoptimized Can a Roblox Game Get?
16:49
ByteBlox
Рет қаралды 322 М.
I Trained an AI for 2 Years on Trackmania. It's Breaking Records.
27:50
Valve's "Secret Weapon"
17:32
Game Maker's Toolkit
Рет қаралды 1,5 МЛН
How I designed Fruit Ninja
22:58
Luke Muscat
Рет қаралды 7 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН