Beginner's Roblox Scripting Tutorial #9 - Else & Elseif Statements (Beginner to Pro 2019)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 687

  • @TheDevKing
    @TheDevKing  5 ปีที่แล้ว +93

    Hey guys! Be sure to join the discord server if you have any questions or if you would like to meet me! discord.gg/FKcSyRh

    • @auto.pilot1
      @auto.pilot1 4 ปีที่แล้ว +8

      Somehow, I will be first like on this comment, 9 months later.

    • @noamyt6973
      @noamyt6973 4 ปีที่แล้ว

      Yeah I got it but how I can change that in the game?

    • @shrek7256
      @shrek7256 3 ปีที่แล้ว

      hi u made me pro scripter

    • @jordanroblox2843
      @jordanroblox2843 3 ปีที่แล้ว

      Thank you so much man you really helped me understand 👌👌😁👍👍

    • @bigzapgamer
      @bigzapgamer 3 ปีที่แล้ว +1

      He loves hotdogs

  • @weirdcreeper5076
    @weirdcreeper5076 5 ปีที่แล้ว +782

    he really likes hotdogs lol

    • @Darkkath
      @Darkkath 4 ปีที่แล้ว +21

      was gonna say whys he addicted to em

    • @sopy3794
      @sopy3794 4 ปีที่แล้ว +25

      ("Glizzy")

    • @miker3715
      @miker3715 4 ปีที่แล้ว +7

      REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
      If your reading this reply then it might be to late to save me I'm mentally exhausted to keep moving foward. I feel like falling apart but I can't I want to cry but I can't I don't want to do anything but I must. I just want to sleep I just want to go home but I don't think it possible

    • @miker3715
      @miker3715 4 ปีที่แล้ว +3

      [Comment deleted]

    • @leroy4335
      @leroy4335 4 ปีที่แล้ว +11

      He is a glizzy gobler

  • @zakareeyaamra942
    @zakareeyaamra942 5 ปีที่แล้ว +449

    This lesson was very simple and understandable you're an amazing teacher.

  • @itzjusthamo8552
    @itzjusthamo8552 4 ปีที่แล้ว +272

    i watched all 9 tutorials and i already feel like a developer

  • @Andromeda42
    @Andromeda42 2 ปีที่แล้ว +66

    This is random, but can I just express how much I love Else if statements? They're absolute life savers. I was writing a script in another programming language a while back and I didn't know that Else if statements existed and the script essentially depended on them to function correctly. I finally found out that they existed and I was able to finally finish that program and move on.
    Okay, rant over. All of that aside, fantastic tutorial. Thanks (:

    • @mropappa5982
      @mropappa5982 ปีที่แล้ว

      bro you are absolutely right else if statements literally one of the most useful things ever

  • @Ramosinator
    @Ramosinator 5 ปีที่แล้ว +174

    Simple and understandable? Ya really know how to teach!

  • @boc_xs
    @boc_xs 4 ปีที่แล้ว +26

    He makes it sound so simple, all the other tutorials I have seen don't. Thank you so much man!

  • @WeirdStrictDadOST
    @WeirdStrictDadOST 5 หลายเดือนก่อน +7

    I FEEL SO SMART WATCHING THESE EVEN THOUGH ITS JUST BASIC MATH AND ELSE AND ELSEIFS AND STUFF THIS MAKES ME SO HAPPY

    • @Jesa_Yuki
      @Jesa_Yuki 4 หลายเดือนก่อน

      Same

    • @hiro3667
      @hiro3667 3 หลายเดือนก่อน

      where would you use any of these things in like a real script? thats the only confusing thing to me

    • @dannyeditsz
      @dannyeditsz 3 หลายเดือนก่อน

      @@hiro3667 you use them all the time

    • @templesick
      @templesick 3 หลายเดือนก่อน

      @@hiro3667 Don't worry, the over use of prints in these scripts are just helping you get down the basics of everything else. You wont use 100% prints to make a sword explode in the sky or something 😂

  • @duxeto6056
    @duxeto6056 3 ปีที่แล้ว +36

    hes always gotta make sure he has 3 hotdogs. Nothing less, nothing more.

    • @LolisLuke
      @LolisLuke 3 ปีที่แล้ว +2

      Ikr

    • @glubiix.
      @glubiix. 3 ปีที่แล้ว +1

      lmao

    • @sacred5492
      @sacred5492 5 หลายเดือนก่อน

      summrs?

  • @skyface5899
    @skyface5899 4 ปีที่แล้ว +54

    Even if you know every syntax and arguments in the coding language, it'll still very hard to program a game. Like, you won't be knowing what to use to make the game working, but that's the fun in coding. It takes you time and effort to make a whole proper game, and you'll have to appreciate it. That's what I am looking for in coding.

    • @LolisLuke
      @LolisLuke 3 ปีที่แล้ว +5

      Just start by making simple kill bricks without and help, or making a part change colour with a while loop, you can also make a simple obby

    • @ffunkk
      @ffunkk 2 ปีที่แล้ว +3

      Making a mistake and fixing it will complete my life

    • @RumblingStarter
      @RumblingStarter 2 ปีที่แล้ว

      It makes you feel proud of yourself

    • @sigmaandpi2062
      @sigmaandpi2062 6 หลายเดือนก่อน

      Nah look up how to make specific stuff on devforum and practice them. It will just take time.

  • @33kc.
    @33kc. ปีที่แล้ว +4

    The amount of potential that "Else" and "elseif" statements have is just unimaginable. Also, you're an expert in teaching I love it.

    • @nahunknown19
      @nahunknown19 11 หลายเดือนก่อน

      this lesson is actually easy

  • @KerbalChris
    @KerbalChris 4 ปีที่แล้ว +59

    I came for re-learning how to set up the if else statements, but now I want hotdogs

    • @doggo_woo
      @doggo_woo 4 ปีที่แล้ว +6

      local HotDog = Instance.new(HotDog)
      HotDog.Parent = Kerbal

    • @KerbalChris
      @KerbalChris 4 ปีที่แล้ว +3

      DOGGO_ Woo thanks man

    • @doggo_woo
      @doggo_woo 4 ปีที่แล้ว +3

      @@KerbalChris no problem man, lemme set ya up with an infinite supply.
      while true do
      local HotDog = Instance.new(HotDog)
      HotDog.Parent = Kerbal
      wait(0.1)
      end

    • @theaverageperson8026
      @theaverageperson8026 4 ปีที่แล้ว +1

      @@doggo_woo Bro you're spawning a hot dog every half second he wont be able to do any work!

    • @doggo_woo
      @doggo_woo 4 ปีที่แล้ว +3

      @@theaverageperson8026 HE WILL SELL THOSE AND BECOME A BILLIONARE!

  • @meowyplays
    @meowyplays 3 ปีที่แล้ว +8

    I tried watching other tutorials and spent half a hour tryin to learn what variables were and didnt understand but with you i learned it in less then 10 mins

    • @NNOQMAn
      @NNOQMAn 2 ปีที่แล้ว

      local cat = "cool"
      if cat == "cool" then
      Reply
      end

  • @Lasidaho
    @Lasidaho 3 ปีที่แล้ว +12

    TheDevKing I'm watching from the playlist but I'd just like to say, you have helped me out a lot so far, and I understand scripting better then I did before.

  • @vrfrenzy8451
    @vrfrenzy8451 3 ปีที่แล้ว +10

    you're a god! I went from not knowing a thing to being able to start writing little bits of code!

    • @eggsaladplays4916
      @eggsaladplays4916 3 ปีที่แล้ว

      me to

    • @meowyplays
      @meowyplays 3 ปีที่แล้ว

      Same

    • @gdog8170
      @gdog8170 ปีที่แล้ว

      no he's not a God stop calling people that because they helped you with a struggle or because they are better at you in something

    • @vrfrenzy8451
      @vrfrenzy8451 ปีที่แล้ว

      @@gdog8170 :/ am I not allowed to thank someone, ofc he isn't a god. Its a term I used for him being so awesome. Stop being so literal : |

    • @gdog8170
      @gdog8170 ปีที่แล้ว

      @@vrfrenzy8451 Bruh then don't call him God just say he is a great person, you using God as a term means you really don't know the scale of this word. I never said you aren't allowed to thank him

  • @DavidGames_-cx3ju
    @DavidGames_-cx3ju 3 ปีที่แล้ว +12

    Okay so I wanted to get into scripting because I've always wanted to, and someone suggested "Hey you should first learn roblox coding" and I think choosing this channel to learn was a good choice. Thank you for these masterpiece tutorials. Next up: Tutorial 10. Amazing teaching!

    • @brandonbombplays9304
      @brandonbombplays9304 4 หลายเดือนก่อน +1

      tbh roblox scripting is not the best pick, as somebody who's learning this as my 4th language. Try scratch if you want to learn the general stuff behind how code works, anything beyond that is mostly just syntax and language quirks.

  • @joshualee6852
    @joshualee6852 4 ปีที่แล้ว +2

    You are literally the only Roblox scripting yt'r I have seen who actually explains logic gates 10/10

  • @MrBaadshah2000
    @MrBaadshah2000 ปีที่แล้ว +6

    He really is the king of developing, if he teaches it this well, imagine how good he is at making games.

  • @ThinkPlum-ok
    @ThinkPlum-ok 3 ปีที่แล้ว +5

    This is much more complicated than the other ones, but still handy. I'm literally righting everything you say down in a book so my small brain can remember. Cheers bro.

  • @lamedev1342
    @lamedev1342 5 ปีที่แล้ว +4

    Jeez this guy has taught me more than 3 months of learning in a week. I used to be struggling moving from youtuber to youtuber at least he's determined at set a goal to teach us! Thanks man you deserve a lot more subs!

    • @Bloav
      @Bloav 4 ปีที่แล้ว +3

      This could really be learned in a day.

    • @alex_valden
      @alex_valden 4 ปีที่แล้ว

      @@Bloav Ikr ! I watched his video for 1 hour (not all of the playlist tho bc right now I'm on this one) and I learned more than all I learned from 1 year on roblox studio lmao

    • @retrofilmwork
      @retrofilmwork 4 ปีที่แล้ว +1

      @@alex_valden yeah but keep practicing! i've done like what you did before but i didn't practice so i forgot all the basic things!

    • @alex_valden
      @alex_valden 4 ปีที่แล้ว

      @@retrofilmwork I'm also making games in the meanwhile so I'm still practicing :) 👍🏻

    • @retrofilmwork
      @retrofilmwork 4 ปีที่แล้ว

      -Alexou Le Neko- Oh wow! Thats great! What game are you planning on? Mine is like a simple medieval game

  • @burntbrownie
    @burntbrownie 4 ปีที่แล้ว +10

    This feature could be used for detecting if a player has bought a gamepass or not, and if they try to do an action that they need the gamepass for (Entering a VIP only lounge), they will either be let in (If part) or they wont be able to get in (Else part). Pretty useful.

    • @gabrielc7861
      @gabrielc7861 2 ปีที่แล้ว +5

      Actually the else part is redundant but you can make it activate a pop-up to buy the gamepass.

    • @kwamexoo
      @kwamexoo 2 ปีที่แล้ว +1

      @@gabrielc7861 i can tell your code is tidy

  • @vastvincent5723
    @vastvincent5723 4 ปีที่แล้ว +8

    I think I finally get it. Elseif's are basically saying, unless if this is this then this will happen.

    • @Laderrr
      @Laderrr 3 ปีที่แล้ว

      You got it.

    • @vastvincent5723
      @vastvincent5723 3 ปีที่แล้ว

      @@Laderrr wow, I really need to be more active with learning. 11 months ago and I'm only on i,v pairs ;-; this is depressing LOL

  • @SiguyDoesStuff
    @SiguyDoesStuff 9 หลายเดือนก่อน +3

    This is 4 years late, but from what I understand of elseif is that if the if statement doesn't pass, it will run another if statement.
    example
    local variable = 5
    if variable == 7 then
    print("variable is 7") --If not passed run next elseif statement
    elseif variable == 5 then
    print("Variable is 5") --Passes so doesn't run next statement
    elseif variable ==3 then
    print("Variable is 3")
    end

  • @PhantomGH
    @PhantomGH ปีที่แล้ว

    This guy makes the best tutorials on scripting, i learned half of the basics across all of the 19 videos in one hour.

  • @cuzimcamoe8847
    @cuzimcamoe8847 2 ปีที่แล้ว +1

    This beginner tutorials are the best scripting tutorials I've ever seen!

  • @xaviersmax
    @xaviersmax 4 ปีที่แล้ว +9

    If you want you can replace the top line for this It will do random numbers up to four whatever you choose
    local hotdog = math.random(4) - - this is math.random Its the number randomiser

  • @pogdog8655
    @pogdog8655 10 หลายเดือนก่อน +1

    Dude is the Indian math teacher on TH-cam equivalent of coding teacher

  • @aybner
    @aybner 3 ปีที่แล้ว +3

    Basically, If you used scratch before you might remember something like
    The If Else block.
    The else statement basically works like that. If the If statement is false, then the else statement will run.

  • @AstralScript
    @AstralScript ปีที่แล้ว +1

    idk how u do this but u teach a whole "topic" in just a few minutes in one video

  • @java9953
    @java9953 3 ปีที่แล้ว +3

    Hotdogs: **Exist**
    DevKing: *L O C A L*

  • @YouFoundSilas
    @YouFoundSilas 2 ปีที่แล้ว +1

    This man has serious dedication, he recorded this at 12 AM

  • @arafiscool
    @arafiscool 2 ปีที่แล้ว +1

    I wrote 22 lines of code and it works, I'm proud of myself. 🙃 (Thanks for making a video on how to script!)

  • @sickGearStudios
    @sickGearStudios 4 หลายเดือนก่อน +2

    This is a random script I made using the tutorials you showed so far :)
    local x = math.random(2,3)
    local y = math.random(8,9)
    if x == 3 and y == 9 then
    print("YES")
    elseif x == 2 and y == 8 then
    print("UNLUCKY")

    else print("NO")
    end
    print(x)
    print(y)

    • @abandonedddreamstation
      @abandonedddreamstation 4 หลายเดือนก่อน +1

      hey, do u know what number after math.random means?? i just try to understand. like does it mean a random number will go up to the one u put in those ( )

    • @sickGearStudios
      @sickGearStudios 4 หลายเดือนก่อน

      @@abandonedddreamstation math.random means it just picks a random number each time the game runs, like for example:
      math.random(1,100)
      the script will choose a random number with that range, so yeah you are correct

    • @Czyborg
      @Czyborg 3 หลายเดือนก่อน

      dang, nice job man, idk how you caught on so fast js keep doing what ur doing.

    • @sickGearStudios
      @sickGearStudios 3 หลายเดือนก่อน

      @@Czyborg yay lol

  • @dead.696
    @dead.696 3 ปีที่แล้ว +14

    2:00
    DevKing: "Hotdogs isnt equal to three"
    Script: "local Hotdogs = 3"

  • @airborne-avk
    @airborne-avk 3 ปีที่แล้ว +1

    this man is more experienced than a fully experienced computer coding scientist

  • @MohnagiEditz
    @MohnagiEditz ปีที่แล้ว +1

    This dude is addicted to hotdogs

  • @Jackthegreat-ks9tm
    @Jackthegreat-ks9tm 3 ปีที่แล้ว +2

    ur killing me with all the hotdog usage

  • @lgg1882
    @lgg1882 3 ปีที่แล้ว +3

    2021 just now learning lua. Thanks for helping!

  • @Gannn__
    @Gannn__ ปีที่แล้ว +10

    There are some very interesting things you can do with the language that we got in the past 9 episodes!
    --Variables
    local Price = --The price of the item.
    local Money = --The amount of money you have.
    --Code
    if Money > Price or Money == Price then --This means that the ''Money'' Variable is higher or equal to Price.
    Money = Money-Price --This will set the Money variable to what it is after the price is substracted from it!
    print("Bought")
    print("Money Left :") --Basically just prints stuff
    print(Money)
    else
    print("Not enough money!")
    end

    I am loving how these tutorials are so easy to understand!
    i would recommend you to play around with what you learn in each episode to learn some things that TheDevKing didn't show us, or didn't show us yet! :D

    • @ItzChaos220
      @ItzChaos220 ปีที่แล้ว

      you can also print the money left in the same line with .. or , for ex
      local m = 9
      local price = 1
      print("Item price " .. price) -- YOU HAD TO PUT SPACE HERE
      print("Money", m) -- no space
      In my opinion, ',' is better.

  • @Thesatoruguy
    @Thesatoruguy 6 หลายเดือนก่อน +1

    Now i feel like most food u like is hotdogs u basically use in every video till now 😂😂😂

  • @bacowedthebull3853
    @bacowedthebull3853 6 หลายเดือนก่อน +1

    I still understood this without watching. Great tutorial!

  • @KrassMus1c
    @KrassMus1c 9 หลายเดือนก่อน

    I watched all tutorials and i feel like a professional developer! Your videos really help they are so simple to understand ur the best teacher?

  • @aespathix3149
    @aespathix3149 4 ปีที่แล้ว +47

    No other TH-camr:
    TheDevKing: 1 dislike lets gooo

  • @BobaMan0
    @BobaMan0 2 ปีที่แล้ว +1

    me bingewatching your vids and taking down notes like crazy be like: I WILL DO THIS CUZ THEDEVKING IS GIVING ME PERFECTO INSTRUCTIONS

  • @ichangedmynamenow3478
    @ichangedmynamenow3478 ปีที่แล้ว +1

    Did anyone else see an ad by Sakpot insulting Lua using this exact video and clip at 3:43 ?

    • @StudioScriptBuilders-fb9bu
      @StudioScriptBuilders-fb9bu 11 หลายเดือนก่อน

      Ohh yeah, it was an ad on that GameMaker thing saying if we'ere tired of Junky game makers even though roblox is actually really good and was using a literall tutorial to say roblox is a junky game engine even though its actually really good!

    • @StudioScriptBuilders-fb9bu
      @StudioScriptBuilders-fb9bu 11 หลายเดือนก่อน

      I dont get it anymore...

  • @user-OnlyNick
    @user-OnlyNick ปีที่แล้ว +1

    How would i make it more than one number for example if the money is any number under zero, a part turns red, and then if the money is above 0 the part turns green

  • @fatchickenpatty3366
    @fatchickenpatty3366 3 ปีที่แล้ว +2

    yandere dev learning this:
    local yandere=7
    if yandere=1 then
    print ("oh no")
    elseif yandere=2 then
    print ("oh no, try again")
    elseif yandere=3 then
    print ("oh no, try again still")
    elseif yandere=4 then
    print ("ugh stop it")
    elseif yandere=5 then
    print (":C")
    elseif yandere=6 then
    print (">:C STOP")
    elseif yandere=7 then
    print ("finally I got it!")
    elseif yandere=8 then
    print ("WHAT ?!? TURN AROUND")
    elseif yandere=9 then
    print ("GO BACK!!!")
    elseif yandere=10 then
    print ("STOP THIS NOWW")
    end

  • @rektizm
    @rektizm หลายเดือนก่อน

    after watching 6 years later these lessons still simple and understandable

  • @MeowToonYT
    @MeowToonYT 5 หลายเดือนก่อน +2

    Bro should get hired by Roblox

  • @DogeMoment
    @DogeMoment 2 ปีที่แล้ว

    after 2:25 seconds i understood how a run (on button) script works. Thank you ;)

  • @17halilibo17
    @17halilibo17 7 หลายเดือนก่อน +1

    Güzel video az ingilizceyle bide alt yazı ile anlayabildim teşekürler

  • @jacksonminglin5684
    @jacksonminglin5684 4 ปีที่แล้ว +1

    and now i just made a somewhat big script from scratch and this one worked, it used a lot of if and functions, it printed "they equal 8"

  • @hughugr3005
    @hughugr3005 3 ปีที่แล้ว +3

    I think I finally get it! An else statement means hotdogs 🤔

  • @Stradious
    @Stradious 4 ปีที่แล้ว +2

    How do you put an if statement inside a function

  • @addy1913
    @addy1913 3 ปีที่แล้ว +1

    So if i wanted to make a level up game and you needed a level requirement and every time they try to accept a quest if they aren’t the required level i could use this? to show a gui that popes up everytime you try to accept the quest? just asking for better understanding thanks!

  • @praimxpert6535
    @praimxpert6535 4 ปีที่แล้ว +1

    hey i got a question is it compulsory to add the elseif statement or you could separate else and if

  • @Kittens-twins
    @Kittens-twins ปีที่แล้ว +1

    Script is so fun!
    It’s like a Math version 2

  • @ef2668
    @ef2668 3 ปีที่แล้ว +1

    oh god this is reminding me about my javascript experience

  • @iamviv4270
    @iamviv4270 ปีที่แล้ว +1

    Here is an example you can use else and if statement-
    Suppose a weapon cost 100 and you only have 70 and you try to buy it, you want to make it so that a error comes saying 'not enough money', here you can use else and if statement by simply putting else 'Not enough money'.

  • @ninja-roblox9409
    @ninja-roblox9409 4 ปีที่แล้ว

    U DESERVE MORE SUBS and i loved the vid im about to finish the serie

  • @cheezsr
    @cheezsr 3 ปีที่แล้ว +3

    Thank you for teaching me if statements! I like these tutorials!

  • @Yeaggerr
    @Yeaggerr 3 ปีที่แล้ว

    Short video with lots of easy to understand and valuable information, your amazing!

  • @ItzFatalChronic
    @ItzFatalChronic 3 ปีที่แล้ว +2

    Everytime I watch one of these videos I crave Hotdogs..

    • @LolisLuke
      @LolisLuke 3 ปีที่แล้ว

      Idr like hotdogs

  • @syclasmfn1850
    @syclasmfn1850 6 ปีที่แล้ว +7

    This is great thanks alot man!

  • @thejetblackwings5802
    @thejetblackwings5802 3 ปีที่แล้ว

    This man helps me learn every single video

  • @saltized593
    @saltized593 3 ปีที่แล้ว

    Your such a good youtuber your like to dislike ratio are in such a good difference which shows youare really good

  • @monkeymman
    @monkeymman ปีที่แล้ว

    Can we all just appreciate how he puts his hotdog on our scripts?

  • @dumbgamer4240
    @dumbgamer4240 4 ปีที่แล้ว +1

    What is the 'if statements' series called? Like what is the proper name for it?

  • @twinfinitegaming4092
    @twinfinitegaming4092 2 ปีที่แล้ว +1

    to check if something is not equal to something (opposite of ==) type: ~= Hope that helps

  • @Level-3ditz
    @Level-3ditz ปีที่แล้ว +1

    5 years ago..

  • @dat_o1
    @dat_o1 2 ปีที่แล้ว

    ur my favourite roblox studio youtuber now

  • @toadboi8026
    @toadboi8026 2 ปีที่แล้ว +1

    The Dev King is the elseif statement even useful?

  • @Alee74
    @Alee74 4 หลายเดือนก่อน +1

    It can be used for gamepasees
    If player have gamepass then give speed boost
    else
    dont give speed boost

    • @Patswitch12
      @Patswitch12 3 หลายเดือนก่อน +1

      it can?

  • @buffmanvr3327
    @buffmanvr3327 2 ปีที่แล้ว

    me from not understanding local to me scripting like a pro thanks bro ur series helped alot

  • @ATr0N2x2s_ALT
    @ATr0N2x2s_ALT ปีที่แล้ว

    4:57 what was that sound?

  • @breakpoint634
    @breakpoint634 5 ปีที่แล้ว +9

    Thanks you

    • @TheDevKing
      @TheDevKing  5 ปีที่แล้ว +4

      Thank you for watching :D

  • @johnbiluke8406
    @johnbiluke8406 4 ปีที่แล้ว +1

    This is helpful for others so i hit the sub

  • @hiro3667
    @hiro3667 3 หลายเดือนก่อน +1

    the only problem is, i understand everything your saying but i have no idea what these would be used for in a game yk

    • @Marwelnajs
      @Marwelnajs 3 หลายเดือนก่อน

      Fr

    • @Twilyytwinkle
      @Twilyytwinkle 2 หลายเดือนก่อน

      "Hotdogs" can be anything honestly and the print is to just check if something is true or not

    • @hiro3667
      @hiro3667 2 หลายเดือนก่อน +1

      @@Twilyytwinkle i know but like what would you use it for, like when you're making a game

    • @Twilyytwinkle
      @Twilyytwinkle 2 หลายเดือนก่อน

      @@hiro3667 like I said it can be used for anything, rn I can't think of an example sorry but it is really useful for beginners. He is teaching else and elseif, and the others are just examples to use else and elseif, it's more understandable when you're actually scripting.

    • @Twilyytwinkle
      @Twilyytwinkle 2 หลายเดือนก่อน

      @@hiro3667 it works for errors and MANY other ways

  • @retrogamer9111
    @retrogamer9111 3 ปีที่แล้ว +1

    Thank you :-) I have a rough idea on why you would want to do multiple condition checks

  • @thequackattack7704
    @thequackattack7704 3 ปีที่แล้ว +1

    Tysm this was easy for me to learn keep up with the good work!

  • @chimpchimpson6
    @chimpchimpson6 4 ปีที่แล้ว +1

    Hotdogs for life. Gotta agree lol. TheDevKing likes hotdogs a lot XD

  • @lilboilooks4711
    @lilboilooks4711 4 ปีที่แล้ว +1

    scripting is so fricking cool i learned alot in this vid

  • @2PJRR
    @2PJRR 4 ปีที่แล้ว +2

    *'if hotdogs wouldnt run'*
    makes sence

  • @ninjaanime3942
    @ninjaanime3942 2 ปีที่แล้ว

    Somehow, I have watched every scripting tutorial up til this one and haven’t gotten confused even once.

  • @LolisLuke
    @LolisLuke 3 ปีที่แล้ว

    I understood at 2:16 minutes, this guy is a god... I mean a professional master lord of scripting... and god created him lol

  • @PuddinLord
    @PuddinLord 7 หลายเดือนก่อน +1

    So what is the point of an elseif statement?

    • @guestlsc0ol
      @guestlsc0ol 6 หลายเดือนก่อน

      just another if statement when if statement get else yeah

  • @shendry4117
    @shendry4117 3 ปีที่แล้ว +1

    Hi all - I am relatively new to this, is it possible to compare block colors in IF statements.
    e.g if 1 block color == really red then change the transparency of another block?

  • @lsestram
    @lsestram 2 ปีที่แล้ว

    This was very simple tap! :)

  • @StudioScriptBuilders-fb9bu
    @StudioScriptBuilders-fb9bu 11 หลายเดือนก่อน

    Even to this day, your videos are inspiring!

  • @volvcsolvic
    @volvcsolvic 3 ปีที่แล้ว +1

    i dont get why the print is important because it doesnt really effect the actual game.

    • @LolisLuke
      @LolisLuke 3 ปีที่แล้ว

      I ain’t smart but it helps to debug a game

  • @levka0840
    @levka0840 2 ปีที่แล้ว

    Do you need a else statement at the end or can you just use elseif statements in the if?

  • @hlflifeenjoyer6176
    @hlflifeenjoyer6176 3 ปีที่แล้ว +1

    dislikes are from the script kids who cannot learned how to script

    • @HammoudiSh
      @HammoudiSh 3 ปีที่แล้ว

      Wait ima script kid and i can learn how to script and liked. Lol

  • @apryctic
    @apryctic 4 ปีที่แล้ว +1

    hey @TheDevKing is this video tutorial also used for randomizers?

    • @loyaltychange4123
      @loyaltychange4123 4 ปีที่แล้ว

      Hmm. I believe one of the later ones has a tutorial on that

  • @Arcadecharm
    @Arcadecharm 7 หลายเดือนก่อน

    It's easy for me to understand because I know PHP. Great tutorials!.

  • @ninjaofwind9263
    @ninjaofwind9263 4 ปีที่แล้ว +2

    Thank you for ur simple tutorial, I really like it

  • @theuniquejester
    @theuniquejester ปีที่แล้ว

    Checkpoint: 3:19

  • @caketriesthings3235
    @caketriesthings3235 2 ปีที่แล้ว

    Will i be able to make an animated opening & closing door at the end of this tutorial? I mean do you teach it?

  • @Connor32131
    @Connor32131 3 ปีที่แล้ว

    my dude is insane legit i just watched 2 video's and i get this one easy,

  • @superhappywars3713
    @superhappywars3713 ปีที่แล้ว +2

    Breaking news, hot dogs isn’t equal to 3. This is an absolute tragedy for mankind however it may mean TheDevKing won’t eat 5 hotdogs every tutorial. This is good, unless if he really likes hotdogs, which is true because he has made hotdog variables equal to awesome I believe.

    • @c4sh1e
      @c4sh1e ปีที่แล้ว

      oh man

  • @theperson2119
    @theperson2119 3 ปีที่แล้ว

    Local TheDevKing == "Hotdog"
    if TheDevKing = "Hotdog" then
    print ("SHEESSHHHH")
    --This is an amazing script.