Beginner's Roblox Scripting Tutorial #3 - Variables (Beginner to Pro 2019)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • Beginner's Roblox Scripting Tutorial #3 - Variables (Beginner to Pro 2019)
    Hey guys, so in today's video I am going to be teaching you guys about variables on roblox studio. So I'll teach you how to set a variable, what they are used for, and why we need them. Anyways enjoy.
    -- 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
    Link to Beginner's Tutorial Series:
    • Beginner's Roblox Scri...
    --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!

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

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

    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

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

      can you make tutorial that you can read for the beginners and advanced

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

      do you know how to use the same variables in different scripts

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

      I have a question, how does printing affect the game? I'm a real noob I'm sry

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

      @@saltedcaramel536people just use it to debug their games, like if something isn't working then it won't print what should be printing. Hopefully I explained it well enough cause I'm kind of a beginner as well

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

      @@openingchain328 ohhhhh
      Tysmmm

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

    I love how these videos are short but understandable. Other people I looked at had an hour video on this.

    • @nikos4677
      @nikos4677 5 ปีที่แล้ว +27

      Only one hour you need at least 20 hours practising reading to learn your scripting small games

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

      @@nikos4677 Don't you mean my BIG GAMES man? I do.

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

      @@nikos4677 you dont need an hour long vid for variables is what he meant

    • @ManLikeWho..
      @ManLikeWho.. 4 ปีที่แล้ว

      same

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

      @EpicGreenYoda If you know qny other language you can learn lua in 20 to be able to make roblox games and if you dont know something, you just look at the dev forum

  • @gvnspade
    @gvnspade 4 ปีที่แล้ว +93

    i like the fact that dev king laughs when doing small stuff like this, really shows he's very passionate of scripting. subscribed

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

      Exactly all the others are like robots

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

      @@Willrb833 ikr

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

      @Darts Unlimited yeah I am subbed

  • @flow4280
    @flow4280 5 ปีที่แล้ว +773

    if u wanna read a small little thing about variables here u go
    variables always start with local, then u wanna insert the name of ur part here, then space equals = game.Workspace.Part
    for example
    local mypart = game.Workspace.Part
    mypart.Transparency = .5
    mypart.Reflectance = .4
    etc
    if this was helpful let me know by replying or liking this comment (dont have to)

    • @masterlegend2944
      @masterlegend2944 4 ปีที่แล้ว +29

      F0RW1RD bruh variables doesn’t always start with local. Do you know what a global variable is?

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

      DONT ALWAYS

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

      @@masterlegend2944 no

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

      this is literally a starters video as well

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

      so it doesnt matter

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

    These videos are the perfect length great job honestly. I lose focus when videos are long and dragged out, these are bitesize and I can understand perfectly

  • @sasked9954
    @sasked9954 ปีที่แล้ว +29

    My mom thought i was watching a math video

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

      XDDDD

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

      Crazy

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

      😭

    • @Rip-soul
      @Rip-soul 5 หลายเดือนก่อน

      Lol

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

      More like some food video eating hotdogs and hamburgers lol

  • @masterlegend2944
    @masterlegend2944 4 ปีที่แล้ว +12

    The good thing about watching beginners tutorials even though I am an experienced scripter is that you learn small things that you didn’t know about

    • @Banana-ui3kj
      @Banana-ui3kj 4 ปีที่แล้ว +1

      Master Legend father, parameters still confuse me XD but this code I understand
      game.Part.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then hit.Parent.Humanoid.Health = 0 I can only do a kill brick

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

      Lime Blox yeah cuz this events and functions have their own parameters

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

      @@simimadlani Never have a 0% day. Always work on scripting even if its just for 10 minutes.

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

    sup tap idk if u remember but i cant wait to watch this series and get better at scripting so keep the videos coming plz

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

      I'm glad and yes I remember you. You donated me like $5 bucks :)

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

      Wow

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

      @@TheDevKing Can you still Remember him?

    • @DhruvPatel-c6g
      @DhruvPatel-c6g ปีที่แล้ว

      @@TheDevKingwhat about now

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

      ofc
      @@DhruvPatel-c6g

  • @KazDudez
    @KazDudez 9 หลายเดือนก่อน +1

    4 years ago, i was learning scripting from you but then 1 year later i quit in order to focus on irl stuff. Now since everything is in check and good.. i started again learning and first thing came to my mind is that i should go back to thedevking videos. These videos are so short, simple, yet so valuable unlike others who yap to get more revenue from TH-cam monetization. Thank you devking, your a truly king among the roblox scripters.

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

    Your tutorials are awesome, finally something i can understand as the other ones are very confusing

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

    This guy is god- Any other vedio takes Hours but doesnt teach you anything! How is it possible that this is GOOD

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

    I just learned p5js, and these tutorials are really helping me switch over. Thanks so much dude!

  • @lemons6357
    @lemons6357 4 ปีที่แล้ว +89

    When they say I cant use google for math homework so I use roblox studio :)

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

    Today morning i had no idee how to code in roblox studio and everything seemed so confusing but just by watching only your first 2 code tutorials everything seems a bit clearer now. Ill continue watching bc i wanna learn everything about it

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

      How's learning going? Did you stick to it?

    • @raresps7653
      @raresps7653 11 หลายเดือนก่อน +1

      @@Pinepineisfine wow, cant believe its been almost 1 year, i havent touched the roblox studio in a while but i would love making games again
      The problem is that its not that fun doing it by yourself...

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

    I just wanna add if you want to add a variable to a string just separate them with commas
    Example:
    local sandwiches = 10
    print("I have",sandwiches,"sandwiches")

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

      or do: print("I have"..sandwiches.."sandwiches")

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

      Thanks

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

      As a C developer this pains me in the inside

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

      Why​@@Aaznos

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

      Should be printf("String 1" + "String 2"); not those .. things

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

    this journey looks promising, cant wait to compare myself now to the future me when i learn scripting :D

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

    There are a lot of youtubers which show you how to script but they all are very confusing. Thank you for making scripting easy to understand.

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

      you right alvin blox is like djdfvnfdildsvlkvnvknvslvxnvfljvndfnflnx;vjxffljlkb

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

      Lol

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

    literally tysm i COULD NOT figure out what i needed to make my script work until i watched this video and remembered that variables existed

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

      variables are literally the basis of any program. How can you forget about variables?

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

    You actually made my day so much. i began with scratch but wanted to learn more. and bc of these videos you made me so happy!

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

    this is honestly a great series, not only are you helping people learn but you also seem to have fun doing it, thank you very much

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

    I find these kind of vids so useful because I am a beginner coder and never new how it worked😂

  • @ossum_guyz2133
    @ossum_guyz2133 4 ปีที่แล้ว +94

    what i learnt from AlvinBlox = local ("If Parent hit Children-Children will die")
    what i learnt from TheDevKing = local TheDevKing = "Awesome"
    XD
    This comment was a year ago, and I am not hating on alvinblox ^v^

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

      ngl true

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

      AlvinBlox’s vids are long boring and hard to understand TheDevKings vids are short and easy to understand

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

      @@CookieMasterRBLX personally I think they both do amazing jobs explaining, but DevKings videos are short and sweet that I'd why they are preffered.

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

      Is*

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

      @@alphie6298 plus thedevking has advanced scripting tutorial

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

    These tutorials are amazing, short, and just so easy to understand

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

    Thanks bro this really helps! i love that your vids are short but do a great job at teaching the scripting! Subbed for sure!

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

    Here are important things you need to know while defining an identifier ( Variable ) in your script
    1) Should not start with any special characters such as / , + , - , % , @
    2) It cannot contain any special characters as mentioned above EXCEPT FROM the underscore i.e " _ "
    3) You cannot start the identifier with a number
    4) Identifiers are case-sensitive when it comes to programming languages... So be careful while calling the identifier in the print statement
    For those who didn't understand the 4th point,
    I'll write an example:
    Code:
    local My_Name = 3
    print(my_Name)
    --This will show an error as " my_Name " hasn't been declared but " My_Name " is.
    Here's how you can add two variables containing numbers as well as an identifier( Variable ) assigned to a text:
    Code:
    local My_Name = 4
    local Favorite_DecimalPoint = 4.5
    local Text = "Hiiiii"
    print(My_Name+Favorite_DecimalPoint..Text)
    --As you can see, I've added " .. " after the identifier, Favorite_DecimalPoint. This tells the interpreter to not execute Text ---identifier in the arithmetic operator, " + " .
    Unless you still understand the above code, here's the output of it:
    " 17:44:02.262 8.5Hiiiii - Server - Script:4 "
    8,5Hiiiii is computed in the print statement
    Leave a like if you understood :)

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

      does "," work instead of ".."

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

      @@rishondsouza2312 No

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

      Idk what .. Does or means

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

      what@@Electrine18

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

      @@Electrine18 It tells the program to not include the string in the equation, but put it at the end of the answer of the 2 variables. (Idk if I explained that well)

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

    Thankyou DevKing, I have been stuck on variables for a while and this vidio helped me a lot!, you explain everything so well, thank you!!

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

    These videos are amazing I was starting to learn Roblox scripting and I wanted to learn variables and I watched ur vid and this is the only I understood lmao

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

    U are the real developer goatt

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

    Im glad these are in bite sized videos and not an intimidating multi hour video like some people do.

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

    Alvin Blox and all the others are soo complicated you have a little kid that understands. Keep up the good work!

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

    For the future there are two types of variables. local and global! these will be used for scope and returning on part 6

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

    This dude fell down from heaven and answered all our prayers.

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

    Litteraly the best TH-camr for learning scripting

  • @stephen5070
    @stephen5070 8 หลายเดือนก่อน +1

    A variable inside a Table can contain different fields of data, and you use [ # ] to select a section.

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

    The fact that you dont just show the commands in the script you also teach them. I start coding in C++ last year in school and for now I see the same things with diffrent names. ( I forgot almost all of what I have learned and it is refreshing)

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

    First I didn’t believe you. Now I’m actually learning!

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

    if yall are confused think of it like shortcuts for example HELLO is a shortcut for 6 so when you say local HELLO = 6 when you say hello the game will look at it as 6 instead of hello

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

    Local TheBestScripter = "tapwater"
    Wait(1)
    Print(TheBestScripter)
    --thanks bro

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

    this youtuber rocks its so easy to learn coding this way

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

    I learned variables on my own but this made me understand it better!

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

    This is what I fucking need a youtuber like you that don't waste 10 seconds intro, 20 to 30 minutes video and talking too much but this... Yes this is what I need a very good teacher 👏👏👏

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

    Man U make Children’s understand.Appreciate it!

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

    This guy really loves his hotdogs!

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

    If i continue watching this i will be pro at scripting lol

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

      Exactly! :)

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

      @@TheDevKing XD

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

      you are getting there

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

      Keep going bro.

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

      bro when were done with this series I'm gonna put all it together and make a game

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

    Me and my friend just got a game idea and this helps a lot thanks😊

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

    I love how these videos contain a lot in a shortage.

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

    kinda easy to understand
    short
    useful
    no super duper long intro
    its perfect

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

    short but effective vid Good Job! u gained new susriber

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

    Your channel is perfect to learn stuff
    Other channels explain it complicated

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

    WOW!YOUR TUTOURIALS ARE SO EASY TO UNDERSTAND.You deserve a sub from all my accounts

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

    Youre the bestt I watched your other videos too theyre very good new sub

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

    Video Summary/Notes:
    Variables
    Variables contain a value (string, integer, etc)
    To define a variable: local insertvariablename = 4
    Once defined, the variable can be printed or added to other stuff
    A variables name cannot contain a space or start with a number
    To print : print(insertvariablename)
    Variables can also contain strings: local insertvariablename = “TheDevKing”
    Variables can also contain decimal integers: local insertvariablename = 5.5
    To add variables together: print(variablename1 + variablename2)

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

    I don't know if this was intentional or not but "local" is not used because it's good practice but has to do with the scope of the variable you're creating and it depends on where you want that variable to be accessible exactly. You can either have a local variable or a global variable.
    A global variable is a variable that can be used from basically anywhere in your code. Whereas local variables are restricted to the block or scope they have been created in.

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

      thanks i was genuinely trying to figure out what would happen if i didn't use local

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

    One day ill be the best developer!

    • @blue-gloves-and-red-backround
      @blue-gloves-and-red-backround 6 หลายเดือนก่อน +1

      Pls remember m

    • @ZasterRoblox
      @ZasterRoblox 6 หลายเดือนก่อน +2

      @@blue-gloves-and-red-backround i will i swear by it!

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

      yes just believe in your dream and dont give up (btw you remind me of shaneplay video) am trying to learn scripting

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

      @@Fiat_Frenzy TYSM!

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

    thedevking i think your videos are great and are really helpful!

  • @sebi2.077
    @sebi2.077 6 หลายเดือนก่อน

    Even in 2024 I Watch this video and understand sooooo well what you teaching thx

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

    Thanks for the tutorial! Had to watch the video to get the concept a bit

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

    thank you! this is very easy to understand and it works

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

    Man Teaches me more about varibles than my teacher does🤣🤣

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

    a way to learn how to script is to make different word docs for each part of scripting like one for printing and variables and add to them what you learn and keep on adding from different youtubers till you have all the information you need to become a pro scripter.
    hope this helps:)

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

      Bro I now use that for when I am learning anything, it's called "taking notes". I also like making examples for it. Really helpful.

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

    Dev King must be hungry

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

    the year is 2024 and your videos is still enjoyable and easy to understand. 🗿🗿

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

    love these vids!

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

    Great video, This is really well explained in a easy and short video!

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

      yea i watched alvinbloxs 20mins+ vid still didint understand a thing bout variables!

  • @700crafter7
    @700crafter7 4 ปีที่แล้ว

    Your helping a lot now I know variables thx:)

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

    I never know how to do math and i dont have a caculator, so im just gonna open my roblox studio and use it as a caculator

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

    Hey not to be rude but I can’t find the output bar, it’s just not there (I probably accidentally removed it years ago.) but is there any way to get it to show, it seems important

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

      idk if you still need help but on roblox studio go to the top bar click view and then find click output

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

      @@TohtoriGerhard Thank you so much!! Now I can see if my scripting is right, I don't think it's possible to show HOW MUCH I WANT TO THANK YOU!!!

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

    Subtitles: Hello guys, its the deaf king

  • @meow-z7e
    @meow-z7e 4 ปีที่แล้ว

    Why do we put *local* in-front of a variable? I didn’t watch the whole video but because it was about variable I wanted to ask here because you have a awesome fan base and you seem like a good TH-camr when I scrolled oh what videos you make.

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

    Thanks bro I wanted to make a game sooooo nice that I would beat Brookhaven but idk how, So I started watching ur tutorials it is helping so much thank you so much.
    Thank you
    Tap water/thedevking

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

    Very amazing tutorial. There are some stuff you probably should of said but throughout the video it was kind of self explanatory. Amazing content. Btw, when typing these variables, can I type spaces inbetween them? like Local Hot Dogs?

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

      no spaces

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

      It's 3 months old but, for anyone else that might see this, there are usually 3 commonly used styles of writting variables along the programming langues, the first one "CamelCase", the second one "Snake_case" and the third one "Kebab-case", all 3 of them will be understood without problems usually by another programmer. Usually kebab and snake are easier to read but Camel its easier to type.

  • @Sernon_
    @Sernon_ 4 ปีที่แล้ว +14

    local TheDevKing = "Awesome"
    :D

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

    YOUR VIDEOS ARE AWESOME

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

    if you accidently use a cheesy name just make yourself deserve it like this man

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

    I gained 1 brancell frog this, gonna keep watching your videos and awesom

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

    best beginner tutorial out there

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

    example:
    box = 5
    print(box)
    while the variable is only a word and not in the game like game.workspace or serverstorage etc.
    you dont need to type print(box.value) to print the variables value but if you do this with a part it gets a little different
    example:
    part = game.Workspace.Part
    part.Transparency = 0.4
    print(part.Transparency)
    what this will do is it will check the part's transparency value and it will print the transparency value
    you can use script.parent too if you inserted the script inside of a part

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

    Variables can also hold Boolean values, no?

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

    I'm making a monster ink building and I have only listened to this 10/10

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

    @TheDveKing Could you do a tutorial on for Exsample if an alarm goes off LockdownDoors all BoolValues would = true or if the sound gets reset therfore the LockdownDoors All BoolValues would = False which would then Raise all lockdowndoors with one Script.

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

    I love how this guy does everything in a 4 min video. When Alvin blocks does it in a 1hr vid!!!

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

      SAME!

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

      Alvin goes in-depth about everything. That is why their longer while tap water/tdk just blatantly does it. Watching them both would help a lot.

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

    these are actually good

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

    Can you make a vid on how to make RC cars drones and turrets

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

    he is better at teaching than my math teacher.

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

    how u have 6 dislikes u should have 0, because ur vids are AWSOME

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

    this is literally excel.

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

    Subtitles say “the deaf king” 😂

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

    aha now im learning how to script Thanks!

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

    If you press f9 and then go to output and then server you can actually perform commands in game (like print something)

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

    if you're an exploiter, it can surprisingly help in learning how to script because some scripts for games require editing and that requires analyzing the script and knowing what's going on

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

    Anyone coming into this should also learn different data types, especially when declaring variables.

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

    Is there such thing as taking to many notes because i have a lot of notes

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

      Mister Holden No there is not, unless your pc runs out of storage to store you game file :p

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

      Nope, it's perfectly fine.

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

    thank you bro nobody told me when i asked what does local mean

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

    2:25 "what can we do with this?"
    eat them ofc

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

    also amazing video i learned alot

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

    that background keyboard is asmr for me

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

    can you help me make my own battlegrounds game?

  • @Manith.S_11
    @Manith.S_11 7 หลายเดือนก่อน

    Thedevking i have a question:
    What are the uses of the codes,"Local FavoriteName = "TheDevKing" " and, "Local FavoriteDecimalPoint = 6.0 "?

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

    lol this feels like a math lesson but it is very helpful

  • @TheIndianGuy-e4z
    @TheIndianGuy-e4z 10 วันที่ผ่านมา

    Damn scripting is so easy with this guy