Advanced Roblox Scripting Tutorial #4 - Common Built-In Functions (Beginner to Pro 2019)

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 504

  • @TheDevKing
    @TheDevKing  5 лет назад +87

    Be sure to leave a comment with any questions you may have! Also be sure to join the discord server to ask questions and meet me, as well as other developers! discord.gg/mKt7RkK

    • @vladimirilyichlenin1147
      @vladimirilyichlenin1147 5 лет назад

      Can you do about ":Connect"?

    • @dragonmaster4548
      @dragonmaster4548 5 лет назад

      @@vladimirilyichlenin1147 He already showed us that.

    • @warriorscotts6654
      @warriorscotts6654 4 года назад

      TheDevKing dude your too nice

    • @jacoobio
      @jacoobio 4 года назад

      Please answer this I've looked everywhere for this: So in my game, I put a part into a model and I put it as Transparency = 1. Then It gives an error. BUT! I put it as Local RNP = game.Workspace:WaitForChild("RedNeonPart")
      I run the script, and it says this :" 00:58:14.673 - Infinite yield possible on 'Workspace:WaitForChild("RedNeonPart")'"
      I need your help bro, Thank you.

    • @codeability6460
      @codeability6460 3 года назад

      @@jacoobio Hey I think I can help ya. I was bored and saw your comment and tried it a little and I found two possible ways to fix it. One way is to put the name of you model after workspace, writing: game.Workspace.TheModelsName: WaitForChild(“RedNeonPart”) or you could just put the parameter “true after” red neon part in the parentheses: game.Workspace:WaitForChild(“RedNeonPart”, true).

  • @cabezonsken1929
    @cabezonsken1929 4 года назад +543

    We gotta love the fact he is still teaching us even though his parents are sleeping.

  • @magma5267
    @magma5267 4 года назад +116

    im about to binge watch all of these videos they are so simple, informative and funny. Ill comment when im finished probably in a couple of days

    • @TheDevKing
      @TheDevKing  4 года назад +37

      awesome! Have fun man. Make sure you go through the beginners series first if you haven't already :)

    • @vennex5234
      @vennex5234 4 года назад +11

      @@TheDevKing ty man you taught me how to script

    • @aloo4572
      @aloo4572 4 года назад +4

      Ven Nex this man learned how to script just so he could hack whaaaaaa-

    • @aloo4572
      @aloo4572 4 года назад +3

      Eliscips look at his videos and the time stamp of his comment the only reason this man is here is because he wants to exploit 🤦‍♂️

    • @magma5267
      @magma5267 4 года назад +4

      @@aloo4572 lol he probably didnt script the exploit himself

  • @VFXShiro
    @VFXShiro 4 года назад +15

    I genuinely Love you. Merry Christmas

  • @ee-wx3hy
    @ee-wx3hy 4 года назад +129

    "So find first child, basically what it does" *slight pause* "Is finds the first child"

    • @carteradams43
      @carteradams43 4 года назад +9

      "The more you know!"

    • @quicstab1367
      @quicstab1367 3 года назад +2

      TMYK

    • @libriumdev
      @libriumdev 3 года назад +3

      This is why I hate his cancerous videos

    • @ConvexFX
      @ConvexFX 3 года назад +3

      @@libriumdev Yeah his videos are so shit bro

    • @libriumdev
      @libriumdev 3 года назад

      @?? no u

  • @calen3595
    @calen3595 4 года назад +16

    Thanks for teaching this, i started scripting on Roblox because its not to complicated like java script, C++, ect. So I thank you for the tutorials I found you and it made me find a hobby I like that one day I hope to turn into a job

  • @skalyn.4322
    @skalyn.4322 5 лет назад +32

    i really have to thank you i learned a lot of scripting in this 2 days that i have been watching all your series

    • @originalnick473
      @originalnick473 4 года назад +3

      :-D Do you still script?

    • @freshmous2097
      @freshmous2097 4 года назад

      k

    • @t-k4560
      @t-k4560 4 года назад

      1 Year Update?

    • @freshmous2097
      @freshmous2097 4 года назад

      i really dont know if this guy still scripts lmfao

    • @skalyn.4322
      @skalyn.4322 4 года назад +5

      Ok heres the update. Im still a begginer scripter and all, But now I can script stuff by myself and I can do my own methods.
      I was recently hired for a jojo game that its main focus will be combat and not grinding
      Now I do stuff on my own and I barely need help from others. Ive gotten into raycasting, magnitude and now im probably getting into Modules, I also understand remote events and how much potential they have. Now I can easily learn stuff from the dev forum.

  • @mationgft3597
    @mationgft3597 2 года назад +3

    your videos are awesome, theyre easy to understand and short, ive been watching these tutorials starting on the beginners tutorial for about if not two weeks now. even tho this was three years ago, these are very good tutorials

  • @bettheelite3423
    @bettheelite3423 2 года назад +3

    huge respect for him taching us while his parents are asleep, also first time seeing you with valk! nice :)!

  • @gunk3407
    @gunk3407 2 года назад +36

    15:02 you can do Part2.Parent = Part.Parent instead of doing that, which will make the cloned part match with the original part

  • @mangofr73
    @mangofr73 6 месяцев назад +3

    Dude thank you so much! I know this video is old and u will probably not see this but I am still very thankful, scripting has been a dream of mine for a while now but I was pretty clueless. Your tutorials have helped so much!

    • @k1ngqx
      @k1ngqx 6 месяцев назад

      same bro

  • @Meloner651
    @Meloner651 2 года назад +8

    If you are confused about WaitForChild it means that it will wait until there is a part that is named the variable.

    • @noobwave6027
      @noobwave6027 2 года назад +1

      Thanks! I will put this down in my notes in case I forget what it does

    • @musharoony564
      @musharoony564 Год назад

      Thank you bro I was confused about that for the longest time

  • @Drownsauce
    @Drownsauce 3 месяца назад +1

    Thank you for these Beginner Series! Truly one of the best ways to start out.

  • @BryanDouglass150
    @BryanDouglass150 10 месяцев назад +4

    Hey man I've been binging all your tutorial videos and I have to say they're one of a kind. There might be occasional mishaps but you're one of the best teachers I've seen for this kind of stuff.

  • @randomperson9997
    @randomperson9997 4 года назад +6

    its this "explanation" that makes me listen better than virtual schooling

  • @antonvilas69
    @antonvilas69 10 месяцев назад +1

    I recommend yall messing around and reading a bit of code and understand how it works and stuff. It will make it easier for you to understand

  • @isaacr.2468
    @isaacr.2468 3 года назад +11

    It's summer and yet he makes me want to learn how to code.
    highly recommend subbing

  • @coatedseven8858
    @coatedseven8858 3 года назад +3

    still a living legend. Make a pro series please, for very very complex demonstrations

  • @randomperson9997
    @randomperson9997 4 года назад +5

    its been a little late and my parents are sleeping
    im binge watching this while my parents are sleeping

  • @AceRobo
    @AceRobo Месяц назад

    If you want to find stuff faster in object browser just press the First letter of the Word and it will go to the First Word with the same letter. Example I press P and it goes to PVAdornment leaving me only 5 more lines down to go to find " Parts " . It has helped me cut the search time in half from scrilling past the letters.

  • @duckonaroll1913
    @duckonaroll1913 3 года назад +2

    how are these videos so good with no editing whatsoever

  • @K4E1234
    @K4E1234 3 года назад +2

    i wonder why people dislike your videos, they probably don't understand it. anyways your videos are awesome

    • @Ooga_OnYT
      @Ooga_OnYT 4 месяца назад

      Who dislikes his videos?

  • @whp3036
    @whp3036 5 лет назад +5

    I don’t know what in the world you are talking about but I’m gonna sub! :)

  • @yhedada7809
    @yhedada7809 4 года назад +6

    9:15 sounds like a demon was summoned, anyways good video!

  • @Spiral_Flames
    @Spiral_Flames 3 года назад +6

    1:13 i thought he said "We're going to start off with dead children"

  • @verysadcatc7897
    @verysadcatc7897 Месяц назад +1

    Don't mind this. it is just here for me to paste:
    --Lesson.2: Commo. Built-In Functions--
    local CharacterChildren = game.Workspace.[Player Username]:(GetChildren() --It will return all of the children into a variable.
    --Paste on next scrip--
    --WaitForChild
    local MyBagguette = game.Workspace.WaitForChild("[YourUsename]") --WaitForChild stops the script from instantly working by waiting for something to avoid errors.
    --GetService

    • @KingkorokYT
      @KingkorokYT Месяц назад

      google docs left the chat

  • @xammax4261
    @xammax4261 4 года назад +10

    9:15 when u make a script that plays a bong every midnight

  • @Aiguyonyt
    @Aiguyonyt Год назад +1

    I Really Love these tutorials! You made my scripting carrier!

  • @superhamsniper4487
    @superhamsniper4487 3 года назад

    as someone who uses another programming software to program something else, the worst part of trying to learn how roblox programming works, is that everything is oversimplified and drawn out and its just stuff that i already know how it basicaly works from before or can just guess how it works, because its like, talking about, like, how a variable works for like 5 minuets, and then theres one minuet of being like, acutal usefull information to me.

  • @Scripture_YT
    @Scripture_YT 6 месяцев назад +1

    W tutorial in general I been trying to learn how to script for a year and almost 2 years I tried at the beginning of summer last year but now I'm here again in April working hard to make sure this will be the last time I'm trapped in tutorial hell. Btw Quick tip for remembering stuff if you don't feel like continuing to the next tutorial just make things.

  • @ralphzt8331
    @ralphzt8331 3 года назад +1

    "My parents are sleeping" me: Oh thats how parents work in roblox studio?

  • @chiefchili8845
    @chiefchili8845 5 лет назад +8

    Can you do a video about click functions regarding GUI's?

  • @dragonmaster4548
    @dragonmaster4548 5 лет назад +6

    TheDevKing, this video has taught me a lot thank you!

  • @Phantommmx
    @Phantommmx 2 года назад +2

    So I know basic scripting (not from your tutorials) but I know the basics. I already knew these, but the thought crossed over me, is ":Clone()" how they do map systems? So I tried it, and yep, I made a random map picker and placer in 30 minutes, just from you using your 3 line clone script lol

  • @chrismelon8192
    @chrismelon8192 3 года назад +1

    nobody:
    the dev king :
    make sure to leave a like it helps i think

  • @gamerobotjimmy
    @gamerobotjimmy 4 года назад +19

    I think I'm a little too late to say this, but your problem at 13:30 is that you didn't make the cloned part's parent workspace, the clone's default parent isn't workspace...
    Dangit spoke too soon you figured it out

    • @ahamedsalim7609
      @ahamedsalim7609 3 года назад +5

      yeah i was about to say that but found this comment,anyways i know the script ,here you go
      local part = game.Workspace.part:Clone()
      wait(5)
      part.Parent = workspace
      part.Position = Vector3.new(1,6,1)

  • @normalperson397
    @normalperson397 4 года назад +4

    I feel in like a classroom, thanks for this leasson Mr. Dev King

  • @hindsight9213
    @hindsight9213 3 года назад +5

    at 9:15 in the video the devking accidentally opens a inter dimensional portal for approximately 3 seconds

  • @charlesbempong2389
    @charlesbempong2389 2 года назад +1

    so basically findfirstchild means find first child
    - tapwater 2019

  • @rudyranger249
    @rudyranger249 2 года назад

    i love how you managed to mistype --:Destroy() twice

  • @QBitDevs
    @QBitDevs 2 года назад +1

    13:43 the reason it did not work is because you did not assign its parent, you would need (for example):
    part2.Parent = part.Parent
    Or
    part2.Parent = game.workspace

    • @wart4344
      @wart4344 2 года назад

      No, 2019 (this tutorial) is outdated so many things of his tutorial series dont work anymore due to script changes

    • @majestic8274
      @majestic8274 2 года назад

      @@wart4344 Do you know of any updated tutorials?

  • @KingkorokYT
    @KingkorokYT Месяц назад

    500th comment! w channle w videos, tought me everything i know

  • @fxnlxn
    @fxnlxn 3 года назад +48

    13:08 You forgot to parent it.
    Fixed Script:
    local Part = game.Workspace.Part
    wait(5)
    local Part2 = Part:Clone(game.Workspace)
    Part2.Parent = game.Workspace
    Part2.Position = Vector3.new(1,100,1)
    Edit: Spoke too soon, you got it.

    • @QBitDevs
      @QBitDevs 2 года назад +1

      game.workspace*
      Don’t capitalize it after game

    • @user-yz9ri8sf7r
      @user-yz9ri8sf7r 2 года назад

      @@QBitDevs No, don't use that use "workspace" or "game.Workspace" or maybe even "game:GetService("Workspace")"

    • @saturinaevans8827
      @saturinaevans8827 2 года назад +6

      @@QBitDevs you do capitalize wdym

    • @Mortadelo230
      @Mortadelo230 2 года назад

      Idiot

    • @Mortadelo230
      @Mortadelo230 2 года назад

      like who do fuck is so idiot to try to correct somebody who still hasn't finished the script :/

  • @clqw
    @clqw 5 лет назад +3

    yayy new vid

  • @robotthom1otherwiseduck628
    @robotthom1otherwiseduck628 2 года назад +2

    9:15 bro accidentally summoned Cthulu

  • @sickGearStudios
    @sickGearStudios 2 месяца назад

    These tutorials teach me a lot thank you so muchhh

  • @TubebotGaming
    @TubebotGaming Год назад

    10:03 love how you have a search tab " Grey "

  • @lukasmasar2973
    @lukasmasar2973 2 года назад

    this man even didnt waste his time editing the video, he just wants to teach us

  • @bruhmate7195
    @bruhmate7195 4 года назад +4

    me: flexes on my friends that I am advanced on TheDevKing tutorials
    my older brother: oh i finished it

    • @aty4282
      @aty4282 4 года назад +1

      Your brother: "i have mastered every programming language you can comprehend"

  • @AstralScript
    @AstralScript Год назад

    i love how in the other videos he is normal and now he got comes out of nowhere with a valk

  • @bryankyancool
    @bryankyancool 3 месяца назад +1

    Even in 2024 these videos are very useful !!

  • @WZNuget
    @WZNuget 2 года назад +1

    Another common built-in function used is OBJ:GetDescendants()
    i hope i spelt that right GetDescendants is like getchildren but it returns the children of the children of something so if i had a folder with a part with another part inside of the first part
    folder:GetDescendants() would give us the part and the child of the part

  • @greattiger8564
    @greattiger8564 4 года назад +7

    9:15 accidentally sets off bomb 2 houses down 😂

    • @aty4282
      @aty4282 4 года назад +2

      Lmao the timing

    • @IX_4
      @IX_4 3 года назад

      lol

    • @IX_4
      @IX_4 3 года назад

      @@aty4282 hold up

    • @shxtodynxsty3320
      @shxtodynxsty3320 3 года назад

      @@IX_4 lol

  • @oisinpark5807
    @oisinpark5807 Год назад

    I asked ChatGPT what replicated storage was and it gave me a good detailed answer

  • @PurpleWolfy
    @PurpleWolfy 5 лет назад +2

    Nice video! Btw can you make a tutorial on how to make self moving train/plane/car?

  • @p0p7art
    @p0p7art 2 года назад +2

    Although it’s so simple, I changed the last tutorial on this video by making it if you touch the wall it gets destroyed instead 😄

    • @rudyranger249
      @rudyranger249 2 года назад

      anchored = false :tf:

    • @Voided2
      @Voided2 Год назад +1

      script.YourPartHere.Touched:Connect(function()
      script.YourPartHere:Destroy()
      end)

  • @reeve_watt
    @reeve_watt 3 года назад

    I Frickin love ur channel😍😍😍😍

  • @reecetilley585
    @reecetilley585 4 месяца назад

    The reason why your clone didn't show is because the Clone() function clones everything about the instance except for it's parent, so you still need to set the clone's parent to the workspace for it to actually show.
    Edit: I spoke too soon lol, you did notice that in the video.

  • @y4zii452
    @y4zii452 4 года назад

    You are explaining so good! Respect that

  • @caz8135
    @caz8135 3 года назад +5

    If i get a dollar everytime his voice breaks, I'd bought a house already.
    That aside, the video really helped. I never knew what the Xyz.Parent = abc thing does. Now i do

    • @caz8135
      @caz8135 2 года назад

      No I don't anymore LMAO

    • @Muchinoi
      @Muchinoi Год назад

      @@caz8135 If you forgot it again, it just means this "xyz's new parent is equal to abc". A use case might be part.Parent = workspace, which assigns part as a child of the workspace.

    • @caz8135
      @caz8135 Год назад

      @@Muchinoi :) thanks. I've quit coding though haha.

    • @Muchinoi
      @Muchinoi Год назад

      @@caz8135 Np! Can I ask why you quit coding? Just curious is all.

    • @caz8135
      @caz8135 Год назад

      @@Muchinoi I lost interest just like that after taking a break to do hs grad exam. I tried to code again but the drive isn't there anymore.

  • @costaprojects1326
    @costaprojects1326 3 года назад +2

    "FindFirstChild() basiclly *TAKING A BIG BREATH* finds the first child"

  • @ealkhiyami9737
    @ealkhiyami9737 4 года назад +3

    we don't want to be awake to do our homework but this guy stays awake to teach us ur the legend

  • @jeremiahsmith8987
    @jeremiahsmith8987 3 года назад +3

    4th Tutorial took me a few hours had to make sure I understood fully and took some break's. TheDevKing really explaines well I Know I'm gonna get far with his help

    • @whitehound4008
      @whitehound4008 2 года назад +2

      jesus a few hours? did you fall asleep or something?

    • @drak3y311
      @drak3y311 Год назад

      probably making sure he doesnt forget it or needs to rewatch
      @@whitehound4008

  • @luckuchiha1661
    @luckuchiha1661 3 года назад +1

    "So WaitForChild, is basically it waits for a child."

    • @ThyBoiledOne
      @ThyBoiledOne 3 года назад

      it basically detects any new instances that are inside of a part/model

  • @robloxsimpleair
    @robloxsimpleair 7 месяцев назад

    Here in 2024, this is still the best tutorial..

  • @ishy483
    @ishy483 4 года назад

    I subscribed great vid 😃 and keep scripting

  • @imnot4chriss
    @imnot4chriss 2 года назад +1

    weird question, can you move a part to somewhere else with a script? not like... in the physical game, but in the explorer, if that makes sense, like for example, if i have a sword in ServerStorage, i want it so when someone clicks a block, it goes into StarterPack, how do i make the sword go into starterpack with a script?

    • @dBucketHead
      @dBucketHead Год назад +1

      just change the parent (sorry for being 9 months late you probs have moved on from this now)

    • @chertomato
      @chertomato 5 месяцев назад

      @@dBucketHeadty for helping me and innot4 ik how to do it now

  • @mtxfr
    @mtxfr Год назад

    This was so helpful!

  • @Valduri
    @Valduri Год назад

    We need more ASMR roblox tutorials

  • @twinfinitegaming4092
    @twinfinitegaming4092 2 года назад

    your mistakes are pretty helpful tbh

  • @Jappley
    @Jappley Год назад +1

    what if you need to get a part that has like 10 siblings that are also named part, but the part you need to get isnt the first child?

    • @Jappley
      @Jappley Год назад +1

      please i really gotta know

    • @therealxem
      @therealxem Год назад +1

      change the name of the part that you wanna get

    • @Jappley
      @Jappley Год назад

      @@therealxem but then why not just reference it like (parentInstance).(partInstance)?😭😭im so confused

  • @T_Akirah
    @T_Akirah 3 года назад +1

    The reason why the clone function didn't work is because when you clone something the clone is not parented to anything so you have to parent the clone

    • @UntitledJim
      @UntitledJim 10 месяцев назад

      Part2.Parent = game.Workspace

  • @joxermako5217
    @joxermako5217 3 года назад

    did you make all of your robux developing and creating games for people on Roblox?

  • @ItsVegaSama
    @ItsVegaSama Год назад

    Okay so I took it upon myself to try and expand on the lesson about GetChildren, and I hit a roadblock. I wanted to make a script that would destroy the rainblocks we made in a previous tutorial and even after adding 2 supposed checks, with no errors might I add, just isn't working and the parts arent getting destroyed. Can I get some help, here is the script
    local rainD = game.Workspace:WaitForChild("Folder")
    wait(0.5)
    if rainD then
    print("The rainblocks are here")

    wait(0.5)

    local rainB = game.Workspace.Folder:GetChildren()

    if rainB then
    print("The gangs all here!")
    end

    wait(1)
    for i, v in pairs(rainB) do
    v:Destroy()
    wait(1)
    end
    end

  • @realtrickz
    @realtrickz 3 года назад +1

    *TheDevKing in last outro!*
    so you guys learn about *DiStRoYiNg*
    *My dad: OO thats where you learned from*

  • @spike3812
    @spike3812 3 года назад +1

    when using the Clone function make sure to parent it :D

  • @ShanaCali
    @ShanaCali 10 месяцев назад

    a little animation you can make with GetChildren
    i would recommend making a pillar of the 3 parts (or however many you want) for it to work better
    local Parts = game.Workspace.Parts:GetChildren()
    for i,v in pairs(Parts) do
    v.Color = Color3.new(1,1,1)
    wait(0.25)
    v.Color = Color3.new(1,0.8,0.8)
    wait(0.25)
    v.Color = Color3.new(1,0.6,0.6)
    wait(0.25)
    v.Color = Color3.new(1,0.4,0.4)
    wait(0.25)
    v.Color = Color3.new(1,0.2,0.2)
    wait(0.25)
    v.Color = Color3.new(1,0,0)
    wait(0.5)
    v:Destroy()
    end

  • @abgedit3230
    @abgedit3230 4 года назад

    love your videos

  • @devblox7584
    @devblox7584 3 года назад

    tysm, i didnt know about getchildren :D

  • @zxfeared
    @zxfeared 2 года назад

    Thanks for the video! I made a very simple button that gives you a tool!

  • @Tigerstriker11
    @Tigerstriker11 Год назад

    Did bro let it rip 🤨9:15 lol Great video btw its helping me a lot

  • @InfinityBS
    @InfinityBS 3 года назад

    So now i know how loading screens are made, they use WaitForChild() and wait for all the assets to load before bringing in the player

  • @dilatare
    @dilatare 3 года назад

    "FindFirstChild, basically what it does ................... is it finds the FirstChild" ahh yes, informative.

  • @Sigma_Function
    @Sigma_Function Год назад

    little tip put it in notes and write like under it or something what it does

  • @Angry-Refrigerator
    @Angry-Refrigerator Год назад

    i actually figured out the clone one on my own and used serverstorage to clone a rock for an item that makes you drop it

  • @noicetree7787
    @noicetree7787 4 года назад

    If u are graduated from any channels's basic tutorial. Then it will be totally clear to whoever see this.

  • @thegreatsoyblack9795
    @thegreatsoyblack9795 Год назад

    This helped me a lot thanks

  • @CaramelInu
    @CaramelInu 3 года назад

    Great Video Soon i can make my game!

    • @Plxyer05
      @Plxyer05 2 года назад

      Lol good for you

  • @imnot4chriss
    @imnot4chriss Год назад +1

    "so what waitforchild does.. is basically it... it waits for the child"

    • @ZyanFernando
      @ZyanFernando 11 месяцев назад

      It waits for the child to load.

  • @pheo1299
    @pheo1299 3 года назад

    I have a question, if you can answer this please just comment:
    The game im making is like Pet Simulator, Pet Swarm but it is more of the Unboxing Simulator.
    I was wondering if this kind of script is already been taught in taps lesson and if it is then ill just rewatch it.
    SO basically, I want to add like a model that I can click and if i click it my chaarcter will attack it (not actually attack but mine it since the model is a rock) and then it has a health and the tool i use should have the ddamage that deals to the "rock" im attacking. Then after I finished attacking it, it will go away since its health is gone and it should go away with an animation ( i want it to like get destroyed with an animation) and then it will drop a single rock that will go straight to my inventory if i click it (typical minecraft)then i have to put it on a "extractinator "(like on pet sim 2, they have a golden machine which turns pet into gold when you apply ur pets into it) if i apply my rock that i got from the stone i destroyed into the extratinator i should receive some coins.
    After the stone is destroyed, it will generate into another location
    How does that work?

  • @demoniccz1713
    @demoniccz1713 4 года назад +6

    Make a vid on how to script Cleaning your bedroom lol

    • @whirlswirl27
      @whirlswirl27 4 года назад +7

      house.room:GetChildren() for i, v in pairs(room) do v:Clean() wait(1) end

    • @RaphaelGo
      @RaphaelGo 3 года назад

      @@whirlswirl27 XD

  • @RERGamingorTecdreaminshort
    @RERGamingorTecdreaminshort 2 года назад

    Congratulations For Buying The Most Expensive Non Limited Hat

  • @JohnPaul-v2f
    @JohnPaul-v2f 6 месяцев назад

    i just realized the variables can read each other if that makes sense these are all so confusing rn dang i thought i finished the beginner scripting series alr-

  • @notcrispeeweevile1388
    @notcrispeeweevile1388 3 года назад

    remember what comments are? alright well use them to organize your code so that it makes sense and stuff i organize my code like this:
    --Start script
    print("Server script started
    --Services
    local dss = game:getservice("DatastoreService")
    --References
    local rep = game.ReplicatedStorage
    --Modules/Datastores (datastores if needed)
    local MyModule = require( rep.Modules.MyModule )
    --Tables/Arrays/Dictionaries
    local MyTable = {"apple"}
    local MyArray = {apple = 1}
    local MyDictionary = {["apple"] = 1}
    --Misc variables
    IsLoaded = false
    --Functions
    local MyFunction = function(r)
    print(r)
    end
    --Events
    game.Players.PlayerAdded:Connect(function(P)
    MyFunction( P.Name )
    end)
    --Threads (Highly advanced)
    coroutine.wrap(MyFunction)("Hello, World!")
    --End script (not really the end but it tells us that all the code is initialized)
    print("Server script end")

  • @Aabani
    @Aabani 3 года назад

    bro I keep on forgetting that tapwater and dev king are both the same people

  • @lnkmobile9504
    @lnkmobile9504 5 месяцев назад

    FIndFirstChild is like you use DFS to find the first one which satisfies the condition in a tree of folders with the root of the tree is workspace LOL

  • @caz8135
    @caz8135 3 года назад

    At which video did you explained about the "for i, v in pairs" thing?

    • @W1ndererrr
      @W1ndererrr 2 года назад

      Last episode of beginner series

  • @yeetowhat5855
    @yeetowhat5855 2 года назад

    8:25 findfirstchild() clone() destory() WaitforChild() GetChildren()

  • @magical1802
    @magical1802 4 года назад

    All right ! I hope I can be an expert like you some day 😎

  • @raheen7570
    @raheen7570 3 года назад +1

    Won’t the location of the part (game.Workspace) be in the parameter of clone? Like clone (Workspace)

    • @weridtem
      @weridtem 10 месяцев назад

      No, its nil and u have tp change it