Beginner's Roblox Scripting Tutorial #8 - If Statements (Beginner to Pro 2019)

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • Beginner's Roblox Scripting Tutorial #8 - If Statements (Beginner to Pro 2019)
    Hey guys, in today's video I am going to be teaching you about if statements. Now these are very important because you will use these all the time when you are scripting and they are useful for finding out values of variables. If statements are pretty easy though so no need to worry. As always if you have any questions be sure to leave a comment, and I will get back to you as soon as I can! I hope you guys enjoy the video and I'll see you tomorrow!
    Link to Beginner's Tutorial Series:
    • Beginner's Roblox Scri...
    -- Follow me on twitter! (my name is tapwater because thats my main channel): / realtapwater
    - Join my Discord Server to learn and meet other developers!-
    / discord
    --What is this series about and who is it for?
    So this series is meant for people who really want to learn exactly how to script, if that is you then I promise by the time you watch this whole series you will know exactly how to script on roblox. Anyways be sure to subscribe to see whenever I release a new tutorial and I will see you guys in the next one. Peace!

КОМЕНТАРІ • 807

  • @TheDevKing
    @TheDevKing  5 років тому +84

    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

    • @saidabdiche5890
      @saidabdiche5890 4 роки тому +2

      i was trying to hack to get free robux. now i am making a game so thx for your help

    • @EuphoricPlaceHolder
      @EuphoricPlaceHolder 4 роки тому

      so if i do this script it should give me the trancperacy of my baseplate?
      if Baseplate == 1
      print ("Yes")
      end
      would it work bcs imma try it

    • @jaketwix7636
      @jaketwix7636 4 роки тому

      lol ik you dont see this anymore but THAT WAS AWESOME

    • @jaketwix7636
      @jaketwix7636 4 роки тому

      @@saidabdiche5890 roblox mods I n t r e s t i n g ...

    • @jaketwix7636
      @jaketwix7636 4 роки тому

      @@EuphoricPlaceHolder im sorry it wouldent ik im not dev but you should type this i belive i could be wrong local Baseplate = game.Wokspace.Baseplate
      if Baseplate.Transparency == 0 then
      game.Workspace.Baseplate.Transpareny = 1 I belive this last part is wrong but hey im not an expert it may work

  • @eggstatus5824
    @eggstatus5824 2 роки тому +191

    If statements are by far one of the most fun things to play around with in scripting. The amount of power an if statement gives you is just unmatched

    • @GoofySillyGuy
      @GoofySillyGuy Рік тому +4

      ikr lmao

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

      @@GoofySillyGuy samee

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

      yes, then i wanna mess around with statements and random

    • @col2650
      @col2650 9 місяців тому

      Are you allowed to use != < > and all those in lua aswell?

    • @cheezyfinleh
      @cheezyfinleh 9 місяців тому

      @@col2650 yes, but the ! symbol is quite complex

  • @vebvoroxe2317
    @vebvoroxe2317 4 роки тому +58

    1:00 for my people learning to script on roblox during quarantine, the simpler understanding is that == is asking "are they equal?" and = is saying "this is the value
    Example: 3 == 3 it's checking if the first value is equal to the second value
    x = 3 its saying that the value of x is 3

    • @LegoPieces_
      @LegoPieces_ 9 місяців тому

      What this means?
      if variable then
      --code
      end

    • @SteveInTDS
      @SteveInTDS 9 місяців тому

      if variable what
      @@LegoPieces_

    • @ShadowRoblox679
      @ShadowRoblox679 7 місяців тому

      ​@@LegoPieces_ end is a function which is used in script ends and sometimes used in the middle of a script or anywhere they are a function which makes the script stop and
      Example : so when your script is got red line under for no reason the end is used if 2 are red lined it will be
      end
      end)

    • @ShadowRoblox679
      @ShadowRoblox679 7 місяців тому

      ​@@LegoPieces_ Variables are a function which holdes all the data of the script
      Examples: if your script is in a part in workspace you need to write
      local (partname) = script.workspace
      If you want to make a script a child of the part or item you need to write
      local (where your inserting the script) = script.parent
      this makes the script a child of the item or part your inserting the script

    • @ShadowRoblox679
      @ShadowRoblox679 7 місяців тому

      ​​@@LegoPieces_the word code dosent exist in lua...(Maybe)
      They are used in printing tho

  • @wuz6384
    @wuz6384 3 роки тому +87

    I was terrified to start scripting but once you get going you notice some patterns. Thanks for this series it's helped a lot

  • @Morezplug
    @Morezplug 5 місяців тому +48

    Watching this in 2024, still the most easiest to understand tutorials out there

    • @rowlzz
      @rowlzz 2 місяці тому +3

      AlvinBlox is a good option too! but this one def better

    • @Morezplug
      @Morezplug 2 місяці тому +6

      @@rowlzz idk Alvinblox is just confusing

    • @lolgutlasa
      @lolgutlasa 2 місяці тому +4

      true

    • @DaSquad420
      @DaSquad420 2 місяці тому +3

      I like this channel

    • @aadiiiiiiii240
      @aadiiiiiiii240 2 місяці тому

      +1

  • @irongriff12
    @irongriff12 6 місяців тому +10

    All though its been 5 years i am now a pro scripter cause of this guy and he does such a fantastic job of explaining scripting and all that stuff and without him idk if i would of been able to script lmao

    • @disneyplusmember
      @disneyplusmember 10 годин тому

      Im happy for you bro I just started 1 day ago and I hope to get better

  • @loadingyourdata2131
    @loadingyourdata2131 5 років тому +161

    This one is easy. Love it man keep it up!

    • @TheDevKing
      @TheDevKing  5 років тому +30

      Thanks bro :))

    • @loadingyourdata2131
      @loadingyourdata2131 5 років тому +11

      Please make more I really want to learn the full steps.

    • @Oiluptylervitelliorelse
      @Oiluptylervitelliorelse 2 місяці тому

      ​@@TheDevKing hey bro do you have any successful games that you have made and hoe much robux have you made from them?

    • @BedsHub
      @BedsHub Місяць тому

      @@Oiluptylervitelliorelse5 years ago he made this, I don’t think he is gonna still comment on a video from 5 years ago.

  • @Mestrix
    @Mestrix 4 роки тому +121

    Your tutorials are so helpful and easy to follow, I love the content man! I haven’t found any others that have made it this fun and easy to do.

  • @sunthestupid8951
    @sunthestupid8951 2 роки тому +39

    The fact that you're tutorials are also kid friendly just makes it better so aspiring developers on the younger side can also learn

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

      Just like me lol

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

      Yeh lol I’m 10

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

      Why are there kids here now

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

      @@Sejdkkk They want robux

    • @VicTenCrafty
      @VicTenCrafty Рік тому +3

      POV: Me, who is 10, trying to learn scripting so that I can make games:

  • @lem3579
    @lem3579 3 роки тому +11

    I love how this man explains things, it's helping me learn the basics so quick

  • @Bloxtun
    @Bloxtun 4 роки тому +65

    Just now going through your tutorials and they're super helpful! I really like that you give a lot of examples when explaining it bc it makes it easier to understand :)

    • @TheDevKing
      @TheDevKing  4 роки тому +20

      Thats awesome! I'm glad It could help. You'll be at the advanced series in no time :)

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

      2nd Comment lol

  • @nickmoschos8476
    @nickmoschos8476 2 роки тому +17

    Thanks to this series i managed to make my first script !😁
    local Baseplate = game.Workspace.Baseplate
    local function Test()
    Baseplate.Anchored = false
    wait(2)
    if Baseplate.Anchored ==false then Baseplate.Anchored = true

    end
    end
    Test()

    • @noobsarebetterthanu5820
      @noobsarebetterthanu5820 2 роки тому +5

      local Baseplate = game.Workspace.Baseplate
      local function test()
      if Baseplate.Anchored == true then
      Baseplate.Anchored = false
      wait(2)
      Baseplate.Anchored = true
      end
      end
      test()
      It should be more like that

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

      i’m bad at scripting but you could make it even shorter maybe idk
      local base = game.Workspace.Baseplate
      base.Unanchored = true
      wait(2)
      base.Anchored = true
      keep in mind that i wrote this with only 20 minutes of tutorial watching experience, expect it to not work at all 👍

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

      @@ehtz It would work but only once but if you put it in a function you could call on it to do whatever you want just by putting as what he put Test() Which you can make repeat by doing,
      While true do
      Test()
      end
      Hope this helped!

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

      @@noobsarebetterthanu5820 well im a noob

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

      Nice

  • @Bradificus47
    @Bradificus47 4 роки тому +19

    I love this, you are the only tutorial i could find that is not hard to understand, definitely making a game by the end of this!!!! Love this series!

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

      Me too

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

      me too

    • @RealSpyduh
      @RealSpyduh 4 роки тому

      Cosmic Blox hey guys wanna share some ideas to each other and probably help each other out add me on discord Riryo#1652

    • @RealSpyduh
      @RealSpyduh 4 роки тому

      pelumi bello Cosmic Blox hey guys wanna share some ideas to each other and probably help each other out add me on discord Riryo#1652

    • @cosmicblox934
      @cosmicblox934 4 роки тому +1

      @@RealSpyduh can u build?

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

    Honestly, this is one of the most self explanatory tutorials here...aside from the having == instead of = to avoid confusion with the variable things

    • @nia_luvv
      @nia_luvv 8 місяців тому

      == is used in every type of programming im sure

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

    he has managed to fit this topic into a 7-minute video while all those Roblox scripting "pros" make a whole 20-minute video and in the end, you barely understand a thing they said. Your content is very beginner-friendly, keep it up and never give up!

  • @dxrk8590
    @dxrk8590 4 роки тому +7

    All these years I knew you, I never knew you were so talented at stuff like this.
    Thank you for the tutorials, they help me a lot!
    Keep up the great work!

  • @zoesworld5347
    @zoesworld5347 4 роки тому +5

    These tutorials are very helpful! I've been doing scripting for a while and I am not fully advanced. These things help set me up for certain things. Thanks so much for making these series.

  • @sergkinder2382
    @sergkinder2382 5 років тому +45

    I like if statements, and I'm excited to learn them! I've been wanting to learn them for a long time! Cool!

    • @Bradificus47
      @Bradificus47 4 роки тому +2

      Me too!

    • @firacita
      @firacita 4 роки тому +2

      the if statements have a big importance to me, i am very sure many other fellow developers think these statements are important and they can’t make their games without them.

    • @talha6998
      @talha6998 4 роки тому +1

      me too.

    • @boopbebop3406
      @boopbebop3406 4 роки тому +1

      @@firacita mhm! Like if you want to do:
      if - line of code right her then
      print(“”)
      If statements are really important.

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

      Uhhh... What us if statements really for?

  • @scarefoe
    @scarefoe 4 роки тому +13

    I have watched so many coding tutorials and they all make it super complicated. Thank you so much for this series. I am confident I will be able to make a game by the end :)

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

      He doesnt explain best practices. Variable names need to be descriptive.

  • @mrjoestur5966
    @mrjoestur5966 2 роки тому +4

    Don’t know why but a year ago I struggled really hard with these, they were way too complex for some reason and my brain couldn’t learn it right. It almost led me to copying code, but I just decided to stop Roblox developing in case I did start to copy Roblox code. But a year later and I decide to look back into it, and I can understand this tutorial so well and I even took some notes that helps me even more. Thanks DevKing 👍! Not that prepared for advanced but I’m ready for anything 😃

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

      hve to take notes?

    • @nia_luvv
      @nia_luvv 8 місяців тому

      @@tkn1ght493 i always take notes its fun

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

    Yo devking I was very confused with scripting and i thought i couldnt do it. But when I found you in UA-cam, it helped me learn alot! Thanks devking❤

  • @infDripman345
    @infDripman345 3 місяці тому +1

    man ur the best i still cant belive that i understand this now instaid of thinking those are random words and "what the heck do they even do" i dont have that feeling after watching ur playlist

  • @jpuck6221
    @jpuck6221 4 роки тому +34

    *first 25 sec* explains the concept I didn't understand for 2 days
    me: yeah this is the good tutorial

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

      Ikr

    • @DaRealKel
      @DaRealKel 6 місяців тому

      if statements are actually so easy if u got experience

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

    Thanks for these tutorials man, really nice and well explained. I'll be sure to like these videos, and re-watch them.

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

    2022 and this guy is still giving the most usefull lessons, tysm gonna see the entire thing again so i can understand

  • @magma2726
    @magma2726 4 роки тому +1

    im kinda late to your beginners roblox scripting series but 3 mins into the video i already knew what if statements are so thankyou and ill be sure to be a pro soon from your videos :)

  • @depressedgoat
    @depressedgoat 4 роки тому +9

    Using this tutorial I made an if statement to check if the baseplate was anchored, if it wasn’t it said “Anchoring the baseplate...” I then used code to anchor the base plate and then printed “The baseplate has been anchored”

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

      Cool! I made some code that makes the baseplate dissapear smoothly. Here's the code. [plez credit me waa]
      local PartTransparency -- The Baseplate's transparency, if it wasn't obvious enough
      local i = 0 -- For a loop
      local Baseplate = game.Workspace.Baseplate -- I know this isn't needed but it's to make my code shorter
      Baseplate.CanCollide = 1
      wait(10) -- Initialize collisions, just in case
      while i < 1.1 do -- Basically how this works is "while" a condition is true [or yes], it will do this action. Otherwise, it stops.
      i = i + 0.1
      PartTransparency = i
      Baseplate.Transparency = PartTransparency
      print(i) -- For debugging. I have no idea why the decimal points go from 0.2 to 0.399999999999999. Floating point is very smart
      if i > 1 then
      Baseplate.CanCollide = false
      print("Oh teh noes! Da baesplate haz DISSAPEARED!") -- For fun. Don't re-correct the message, otherwise you're a huge nerd.
      end
      wait(0.01) -- For any silly classic C++ bards, yes, they measure waiting time in seconds, not milliseconds.
      end

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

      @@bearreyes1837 You can use tweening, its good piece of code. Tweening is so smooth and very easy to learn

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

      @@its_hallux4581 I actually know already, I just didn’t discover it that time I made the code.

  • @xrotator8986
    @xrotator8986 4 роки тому +1

    Hey, thank you so much! I know it's not much, but I must thank you for teaching me! I was able to write a function that made a part become red, Neon and then into a ball after your if statement video. Keep it up! Also, I think I saw a huge bost in confidence her!

  • @nexusexperience993
    @nexusexperience993 9 місяців тому

    Im a few months into scripting. Watching through the playlist for beginners to refresh! This one caught my attention pretty awesome if statement tutorial!

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

    i dont like how he explains one thing for too long
    but i like how he goes straight to the point

  • @gamerdude422
    @gamerdude422 4 роки тому +88

    Don’t worry, I usually say “equals equals”

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

    Gotta love the like to dislike ratio, 1.1k likes and only 9 dislikes. Proves how good your tutorials are.

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

    This is an AMAZING tutorial series

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

    i had a little fun and did this,
    local x = 1
    local y = 3
    print (x+y)
    if x+y==4 then
    print ("yes")
    end
    i made it so it says "yes" when 1+3=4
    which it is so the output is
    4
    yes

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

      Yeah I taught myself some scripting basics

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

      just wait until you learn about elif, you can make it say "no" if 1+3 is not 4!

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

    This one is one of my favourite. Your tutorials are very nice and fun. Keep it up!

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

    hey man. ive never scripted but im here on the 7th tutorial and i really understand and im starting to script alone. i used to think how people just make the scripts out of their mind. now i do it! thanks for these videos.

  • @Someone-qp3om
    @Someone-qp3om 3 роки тому +1

    really good i took a break and i started watching over again it was so good that i remember almost everything!

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

    this video is the best tutorial I have ever seen because I now know how to make a "if" statement and "if" statements are so important in scripting. thank you TheDevKing

  • @Lueaxy
    @Lueaxy 3 місяці тому

    Hey even after 5 years its still pretty nice!
    I learned much things from you thanks man!

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

    What i learned for if statements:
    local part = game.workspace.Part
    if part.Anchored == true then
    part.Anchored = false
    wait(1)
    part.Anchored = true
    then can be done with numbers too:
    local x = 3
    if x == 3 then
    print("Yeah boy")
    This will print ("Yeah Boy") because x = 3.

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

    If statements
    Local x = 3
    If x == 3 then
    Print (“yes”)
    end
    - When making an if statement two equal signs are needed to check if it's equal.
    We use if statements to find things out so if a player has 1000 dollars then they can buy this item
    Local x = 3
    Local x = 4
    If x == 3 and y = 4 then
    Print (“yes”)
    end
    --The and lets you add more things so let's imagine a player needs 1000 dollars and 2000 exp to get this item
    Obviously if you don't have one or the other you can't get the item
    P.S thank you devking for these tutorials they are very helpful

  • @MwSama
    @MwSama 4 роки тому +1

    these tutorials are actually so good lol :) and it feels entertaining lol

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

    I love the way you explane the scripting and now my best script is
    local Transparency = 0.5
    local Anchored = true
    if Transparency == 0.5 and Anchored == true then
    game.Workspace.Baseplate.Transparency = 0.5
    game.Workspace.Part.Anchored = false
    end
    print ("it worked!!!")

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

    i made a discovery if you put local x = 7
    local y = 2
    if x or y == 9 then
    print ("YES")
    it will print YES because it adds up and idk if he covers it later in the playlist but this is for people who didnt know

  • @OlekGD-u8i
    @OlekGD-u8i 9 місяців тому

    THATS THE MOST EXPLAINED AND BASIC THING YOU EXPLAINED ME, here is a script that makes the baseplate invincible after 3 seconds:
    local Cheese = true
    if Cheese == true then
    wait(3)
    game.Workspace.Baseplate.Transparency = 1
    end

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

    if you want to make it even more complex then you can do
    local a = game.Workspace.Baseplate
    if a.Anchored == true then
    a.Anchored = false
    end
    wait(2)
    if a.Anchored == false then
    a.Anchored = true
    end

  • @Raef_-vc3en
    @Raef_-vc3en 2 роки тому

    Thank you I really appreciate your hard work to teach us all scripting and I did learn scripting from you and I'm really great at it now, so I started teaching other people how to script, thanks man we all really appreciate your teaching and hard work :)

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

    THANK YOU SO MUCH! ive been trying to learn lua but i really didnt know where to starts from. I watched Up to this video at the time of this comment and i managed to make a colorchanging part!

  • @wspitswinston8866
    @wspitswinston8866 4 роки тому +1

    thank you so much dude. these tutorials have helped me so much, and i'm doing a lot better at scripting

  • @zwhite3262
    @zwhite3262 Місяць тому

    bro that makes me have an idea for a generator from a horror game, im so excited for learning more!!!

  • @skrill-the-gamer
    @skrill-the-gamer 4 роки тому +6

    Im going to put my code here for anybody who didnt understand it,
    --My Code
    local x = 3
    local y = 6
    local z = x+y --variable adding x and y
    if z == 9 then --If z equals 9 then print 69 to the output
    print(69)
    end --The end
    --If You didnt understand the video, try editing this code in roblox studio :)

  • @rowlzz
    @rowlzz 2 місяці тому +1

    one of the commons examples of If statements will be Players Health:
    local playerHealth = 50
    if playerHealth

  • @kingnugget8779
    @kingnugget8779 4 роки тому

    You ain’t joking about being the dev king being a good king, helping your people!

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

    While watching this I got kind of a grasp on elseif statements, so thank you again TDK :D

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

    just an explination for someone who doesn't know yet
    The "=" operator is the assignment operator, which is used to assign a value to a variable
    Example
    X = 10
    The "==" operator is the equality operator, which is used to compare two values for equality. It returns true if the values are equal and false otherwise
    x = 10
    if x == 10 then
    print("x is 10")
    else
    print("x is not 10")
    end
    In short " = " is to give a value for or to that variable
    And " == " is to check the value that it is given

  • @priyanshibais3146
    @priyanshibais3146 7 місяців тому +2

    Fun thing about lua and python is that even if you learn 1 you can also easily master and learn another
    I learnt puthon and because of that lua is every easy

    • @koni60
      @koni60 6 місяців тому +1

      same

  • @ItsLeeeroy
    @ItsLeeeroy 3 роки тому +24

    Local x = “Dababy”
    If x == “Dababy” then
    Print(“Less go”)
    end

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

      @@roguenogue local x = Dababy
      if x == Dababy then
      print("less gooo")
      end

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

      local x = "less go"
      if x == "Dababy" then
      print("converteble")
      elif x == " crewmate " then
      print("susbro")
      else
      print("joemama"
      end

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

      @@unsimplehumain116 elif - elseif ?
      print(“joemama” = print(“joemama”) ?

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

      @@ItsLeeeroy ya im typing fast but elif is a real thing

    • @DaRealKel
      @DaRealKel 6 місяців тому

      mobile user detected initiating femur breaker

  • @isaiah4tone
    @isaiah4tone 4 роки тому

    Yay! I was excited for this one, always wanted to learn about if statements.

  • @enemyblox
    @enemyblox 9 місяців тому

    For who still doesent get it it's simple it's just like if this block is anchored then play that music or something, and for who doesent understand wait you just put wait(any number) and the number you put next to wait is how many seconds it will wait and after the seconds finishing you have to put a script after the wait and it will play the script after waiting

  • @cheef9504
    @cheef9504 4 роки тому +1

    Thank, you dude!! I’ve learned a lot about scripting bc of you!

  • @littlewarp
    @littlewarp 5 місяців тому

    His short chuckles makes the tutorial more lively tbh

  • @Tyler-jd3ex
    @Tyler-jd3ex 4 роки тому +1

    Knowing python definitely helps! Thanks for the videos!

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

      I totally agree I recently started learning Python and Java and I realized lua is like both those languages

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

    In 1 day ican see 8 videos and it’s very good and thanks for learning

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

    I watched a tutorial at my language he of course teached if then else if but he didnt even teach “And” iam so glad i know you and watch you

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

    Im watching much after the vid was made but tbh this guy is literally one of the best teachers

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

    im learning stuff already 1:15 into the video because i already understand it because its like a function, im learning stuff and im proud. i put this code into the script:
    local function hi()
    print("Hotdog")
    end
    local x = 3
    if 3 == 3 then
    hi()
    end
    and it worked!!!

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

    This guy is an absolute legend

  • @Hrvatskei
    @Hrvatskei 8 місяців тому

    This tutorial was so teaching because of everything man

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

    Best part about learning to script is feeling smart when it acctualy works

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

    only 7 minutes? im subscribing

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

    your really helpful, got a new sub! thank you sooo much for your scripting tutorials!

  • @paravalent7974
    @paravalent7974 4 роки тому +1

    my parents put me in a course to learn coding. out of all my 5 months(I think), I have learned more from here

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

      I learn from here only because I really want to make Roblox games :)

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

    Really equal to :-) I like that wait function you called there, that is going to be used all the time for events I would assume?

  • @GAMEGAME52100
    @GAMEGAME52100 3 місяці тому

    this is soooo coool most coolest scripting tutorial i have ever seen

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

    ok so basically for those who doesnt get if statements lemme explain
    if statements are basically used for like example
    **local guy = true
    if guy == true then
    print("Guy is true")
    end
    if guy == false then
    print("Guy is false")
    end**

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

    4:51 the most satisfacing sound in this vid

  • @Rip-soul
    @Rip-soul 2 місяці тому

    5:22 u can also replace
    If Baseplase.anchored
    By using the variable:
    If Baseplate == true
    BUT you will have edit the variable to this:
    Local Baseplate = game.workspace.Baseplate.Anchored

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

    You're tutorials are easy to understand and helped me script thank you

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

    gotta be my favourite part of the code because its so intuitive and easy to understand lol.

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

    just found out something, if you higlight some text in RBX studio and do a parenthesis it will do a parenthesis around the text :0

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

    learned one thing i didn't know about if statement thx bro

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

    Thanks for ur vids they really help me :D!

  • @nicolasesau4640
    @nicolasesau4640 16 годин тому

    For those who don’t know, “Wait()” is an outdated version. Yes, it still works but to ensure smoother code execution do “task.wait()”
    Keep up the great work, you taught me 98% of the scripting I know

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

    this helps me alot thanks devking

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

    For anyone watching, you could use If statements to fix bugs in your game. For example, you could have it detects if a player has glitched into a area they shouldn't have, if they have then it teleports them out of there.

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

      How? I mean I understand this. But how do you type it?

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

      @@AriusWight man I typed this 9 months ago I’m onto. Better things lmao.
      you can ask this on the dev forum though

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

      @@AriusWight were not in advanced so I don't exactly know but I bet it's like: you need a part, name it "OutOfBounds" and make it transparent and to have collideable false but cantouch on, then make it so when you touch "OutOfBounds" it teleports you to a in bounds coordinate and boom.

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

    I am subscribing. This is the best youtube channel

  • @isaiah4tone
    @isaiah4tone 4 роки тому

    You explained this sooo well. Thanks a ton man :D

  • @TheKreekFan
    @TheKreekFan 2 місяці тому

    This guy deserves a sub

  • @KrustyGrabbers-tt6qx
    @KrustyGrabbers-tt6qx 6 місяців тому

    local ground = game.Workspace.Baseplate
    ground.Material = "Marble"
    ground.Transparency = 0.6
    local function add(player, friend)
    print(player + friend)
    end
    add(3, 5)
    local x = 3
    local y = 6
    if x == 3 and y == 6 then
    ground.Anchored = false


    end
    what i've put together so far

  • @jcoarite
    @jcoarite 9 місяців тому

    Really great tutorial thanks for the tip at the end.

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

    Absolutely amazing work!! now i can make my objects unanchred and stuff!!

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

    tutorials still work well thanks so much man!!

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

    I think that if statements is the coolest part in scripting.

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

      Dude switch statements are the cooler if statement
      they look so nice, as well
      switch(value){
      case 1: std::cout

  • @FoxIsADev
    @FoxIsADev 4 роки тому

    Thanks man you really made me learn functions

  • @themagnificentmanatee6617
    @themagnificentmanatee6617 4 роки тому

    Simple and easy to learn. Thank you so much bro!

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

    just saw this video and i managed to do this!!!
    local baseplate = game.Workspace.Part

    if baseplate.Anchored == true then
    print("yes mfer its anchored and ima unancher hehe")
    wait(2)
    baseplate.Anchored = false
    end
    wait(4)if baseplate.Anchored ==false then
    print("chill imma make it anchored again")
    baseplate.Anchored = true
    end
    im so happy that it worked ty bro

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

    thx im now able to make plugin that won't actually really work but there is example local function Test1()
    local game workspace.Part.Transparency = 0.5
    if 0.5 == 0.5 then
    print("Hacker")
    end
    end
    Test1()
    thanks for your splendid tutorials that will help me achieve my dream to become scripting enthusiast.

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

      That's really nice, but you could kick them (or ban them) if you replaced the print with this.
      local player = game:GetService("Players").LocalPlayer
      player:Kick("Kicked for Exploiting!")
      ----------------------------------------------------------------------------------------------
      I don't know if this will work though.

  • @HomieHomieHomie
    @HomieHomieHomie 8 місяців тому +1

    just a silly little combination i made.
    local Baseplate = game.Workspace.Baseplate
    if Baseplate.Anchored == true then
    game.Workspace.Baseplate.Transparency = 1
    end
    this makes so the baseplate only can change its transparency when its Anchored.

  • @user-fl9rz9ke9g
    @user-fl9rz9ke9g 5 років тому +1

    Dude, you just got the Oscar for being so epic.
    Love the vids so far, i really can come along pretty good.
    Thank you.
    - Drago

  • @bermousouad8044
    @bermousouad8044 4 роки тому

    I love you man you made my day thank you. love it ❤️