Beginner's Roblox Scripting Tutorial #13 - More Events (Beginner to Pro 2019)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 เม.ย. 2019
  • Beginner's Roblox Scripting Tutorial #13 - Events (Beginner to Pro 2019)
    Hey guys, I AM SO SO SORRY for not uploading for 6 months I honestly just forgot but I will not be leaving again I promise! I hope you guys enjoy the video and If you have any questions you already know leave a comment. Anyways enjoy! :)
    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!

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

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

    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

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

      dev i dont know why mine is not working

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

      nvm THANKS SO MUCH!!!!!!!

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

      Didn't even notice you were TapWater lol, sorry.

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

      @AustinGaming If you have a model named bob, with multiple blocks that make it. If one of the blocks is called jeff. then bob is the parent of jeff

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

      Sorry dev it’s expired

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

    surprised you didnt call the part hotdog lol

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

      he's grown so much after 6months

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

      Yes he forgot hotdogs and moved to hamburgers

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

      Omg I just realized I made this comment lmao, I’m joshua h on my yt account

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

      @@UnusefulGaming Yea ive heard people get from complete begginer to absolute legend in 6 months

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

      Classic

  • @l.b.2949
    @l.b.2949 ปีที่แล้ว +106

    These tutorials are the best ones I ever saw. So many knowledge gaps of mine have been eliminated. And it is such an honor to hear that heavenly "Oof" again.

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

      i agree

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

      God I still miss that sound

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

      it still exists. *as a high pitched sound*@@frownyee

  • @Vaflinis
    @Vaflinis ปีที่แล้ว +74

    What have I learned so far:
    DevKing REALLY likes hotdogs
    The tutorials are epic
    I am actually learning what I dreamed of learning when I was smaller

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

      Hello have you learned lua now? not asking for a script or anything i just hope u learned lua cuz uts ur dream :D

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

      I learned Lua but then stopped coding for like 2 years :(

    • @Vaflinis
      @Vaflinis 10 หลายเดือนก่อน +6

      @rabbitspaceagency704 Sorry for the late response lol, actually right now I am re watching the whole scripting series again because I was kind of inactive learning Lua for a few months, but right now I am back on track! It's a lot easier learning it now when you have watched the tutorials before. :D Thanks for asking

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

      @@Vaflinisnice :D good luck!

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

      @@Vaflinis damn

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

    Start: ok guys it’s the dev king here back with a daily video
    Little while ago: it’s the dev king sorry I was gone for like 4 days but I’m back and will never do that again
    Now: *hello guys it’s the dev king here sorry I was gone for like 6 months I’m so sorry I’ll never do it again*

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

      Hes pulling a coryxkension

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

      Lol

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

      Stop complaining

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

      @@Xerlxyz he is not complaing

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

      Next time it's 5years lol

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

    I will be uploading every 2-3 days! I hope you all can learn from these tutorials and like always if you have any questions leave a comment!

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

      Hopefully I don't seem like I'm rushing, but it has been 13 days since you last uploaded is anything going on?

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

      @TheDevKing where are you

    • @finalhourhd8822
      @finalhourhd8822 5 ปีที่แล้ว

      TheDevKing what’s the discord server

    • @bbldrake6651
      @bbldrake6651 5 ปีที่แล้ว

      It's may 6 are you sure about that

    • @Crystal-pv8ix
      @Crystal-pv8ix 5 ปีที่แล้ว +2

      a month has passed where are u >,

  • @Youtuber-sq2fj
    @Youtuber-sq2fj 5 ปีที่แล้ว +345

    Amazing videos! I am only 11 years old and I could follow along with your script just fine!!!
    Edit: 14, im 14 now
    Edit: Im 15
    Edit: Im 16 😎

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

      *meanwhile you think this is a print script*

    • @Lolo-ph4fb
      @Lolo-ph4fb 4 ปีที่แล้ว +7

      Official Term 😂

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

      same

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

      @@calen3595 Same i am 12 rn

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

      @@certifiedhoodclassic638 oof

  • @UrReplyingCuzUrMad
    @UrReplyingCuzUrMad 9 หลายเดือนก่อน +16

    These types of tutorials to learn scripting are the best. It’s so real and knowledgeable, and whenever he messes up he doesn’t edit it out or anything which is amazing because it teaches you different things to not do as a scripter and teaches you that your gonna mess up and there’s always a solution. Amazing DevKing

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

    I’m coming back from the grave and learning to script when I was 12 I failed a few months ago I also just gave up due to lack of motivation but here I am again and I’m proud of what I’m starting to actually use and be smart

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

      Facts man, same😁

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

      ikr? I use to go on a bunch of scripting tutorials and just clicked off due to lack of motivation.

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

      Same!

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

      Are you still going?

    • @Tyler_1.0
      @Tyler_1.0 2 ปีที่แล้ว +1

      lol i just get distraced lol

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

    Events were the most important tutorial when you uploaded that video. I hope this video is even better because last time you made this in a video it was one single event

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

    I would recommend when doing these tutorials to keep track of everything in a journal/notebook. It really helps for later on if you forget anything you can just look back at the journal and see how to code a function or something. These tutorials have brought me into the coding world and I think they are great! Thanks!

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

      what i do is similar. i script everything he says a few times on my own to practice until i have it burned into my memory in a test game, and i figure if i forget i can reload it later.

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

      my friends and I have a whole group for practising coding

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

      hows your scripting journey been

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

      what I do is try to make my code a little bit more different like changing the names and the values to atleast know that it works for everything, I used to write notes but then I lost the notebook

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

      I just tweak and play with it in studio, renaming things.. and i just put it in my head it’s ez

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

    This is my favorite script you have taught me in this series so far!

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

      Mine too lol

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

    btw it does matter what you set the hit to, if its anything else, the game wont know what your talking about and it will print a nil whenever you touch it, so experiment with it and see if you find anything different than what i said.

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

      You can change it to whatever you want to. Hit is just what most use but u can set it to Hotdog and it will still work just fine. I hope this was what you were talking about

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

      don't know if roblox fixed over the years but you can see that anything works now.

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

      Is hit a fuction? Because when i typed the same thing that he did, it did nothing i only changed the Part because i changed the name of the object to Granitepart

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

      Hit is a built in parameter. So unlike normal parameters which you define the variable in the function and set any value when calling the function, parameters linked with events are set by roblox. You can name the variable whatever you want just like normal parameters, but it returns a value when the event is fired. For touch event, I *think* there is only 1 parameter, which is the part that touched the part that had to be touched to fire the event. So when the event is fired, it returns a string value to the hit parameter (or whatever you named it) of the part that touched the part that had to be touched for the event to fire.

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

      A players character consists of many parts like “RightLowerLeg” and stuff like that. Also, players are the only objects that have a humanoid as a child. So if a player hits the part, the hit parameter will return the body part that hit the part, and so hit.Parent is the player, and if finding a humanoid is true with the hit.Parent, we know for sure it’s a player, because of a random part hit the part, it would not find a humanoid in the part’s parent.

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

    Haha right when I figured out I could edit my avatar while playing in studio I deleted my legs 😂

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

      rip legs

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

      @@shotab8758 😔

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

      @@joshuajurado939 ?

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

      @@shotab8758 its an emoji basically saying: sigh

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

      me when making ghost :

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

    6 months
    man you beginner scripters have so much dedication
    *respekt 200*

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

    Thank you for showing me the object browser it help me to know some codes and know what they do.
    And you explain every single thing we didn't know. :)

  • @katkant
    @katkant ปีที่แล้ว +30

    Notes: (its a long one!)
    Script.Parent is the patent of the script
    The event touched will fire when the part is touched by a different part in game, and it will run a LOT if you were to touch it, since players are made of many parts
    A way to connect a function to an event is:
    [the name of your part].[the event]:Connect([name of your function]()
    And if you were to use a parameter in the () then what fires the event will be stored in it.
    Example:
    Knee.touched:Connect(Bee(tea)
    Then the part that touched Knee will be Tea
    So if you were to use (tea) later on in the script, the script will see tea as what touched knee.
    Example:
    Imagine that your function is
    Print (tea)
    When you fire the game, and something touches knee, the function will fire. But instead of printing tea, it will print the name of the part that touched knee
    If you wanted to make sure that the part that is touching knee is a player, then you would need to do this:
    If tea.Parent:FindFirstChild(“Humanoid”) then
    [And here you type the code that happens to the player if the player touches knee]
    End
    Let me explain;
    Humanoid is a part that only players have
    So findFirstChild(“humanoid”) looks for a child names Humanoid once. If its there, the function fires, if its not there, then the part is not a player, and the code doesn’t fire.
    The reason we type tea.Parent is because players only have one humanoid part which is the direct child of the player. The part that touches the part isnt the player itself, but the limbs (aka the parts in the player) and there are no parts called humanoid in those limbs. So instead of looking for humanoid in the part that touched knee, we need to look for humanoid the the parent of knee (which is the player in this case)

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

      Thx for explaining, those helped alot.

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

      using a body part as your "Part" name is a little confusing for some people(me) but i got the hanged of it and that helps thanks my dude

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

      Thanks for breaking it down dude

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

    Hi Tap,
    I just wanted to say that the fact that you don't want to edit your videos actually makes them easier to follow lol

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

      actually it kind of does, in a moment when all of us would be confused, we're confused together lol. instead of him cutting straight to a correct version of a script and slightly confusing us more

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

    I have watched 7 different tutorial TH-camrs for scripting and not one explained what everything they type does and what’s its for. Great tutorial!

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

    Man, you're a lifesaver with those -15 minute vids bro.

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

      *timesaver

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

      are u a pro scripter now? or at least good at scripting. Just asking people to see if they didnt give up

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

    this far into the series and i am managing to understand everything, it's so cool, always wanted to learn scripting but only now it's kicking in

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

    Thank You Devking for making these awesome videos!

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

    i've always wanted to make a game and have the power to make updates according to my will, because i see games out there that i like but they just take the wrong turn when they make an update, so when i make my own game this series would help me make it and expand our community in a positive way, thank you so much for taking your time to enlighten us newbies about coding and all that, it deserves a sub!

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

      What type of game are you trying to make

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

      rpg
      so far i'm only struggling with the map, but i shamefuly started out by using a game kit that mimics the style of the type of game that i wanted to make, but then later on i started learning how to fix any bugs that might of happened, and configuring scripts to my will. not to the deep point but just changing some variables. Now i know a little more of what to do and might just try making my own game without any kits or help. but the first game i used that had a kit, is pretty much done. with the exception of the map. the first game's name is undertale robo mania, but the second game is still work in progress.

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

      @@the_waterpearl7517 noice

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

      saaaaame

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

      @@the_waterpearl7517 Its been a long time since you wrote this, so how have things been coming along?

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

    This video helped me learn findFirstChild so well, thx so much DevKing!

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

    THIS IS THE EPSIODE I NEEDED

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

    TYSM, THESE TUROTIALS HELPED ME A LOT TO FILL IN THE GAPS I HAD IN SCRIPTING =D

  • @Evinn-bd1pb
    @Evinn-bd1pb 4 ปีที่แล้ว +3

    Thank you so much! I learned alot from your videos

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

      how did scripting go for u

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

      are u a pro scripter now? or at least good at scripting. Just asking people to see if they didnt give up

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

    i am learning so much thanks for the tutorials

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

    has he moved from hotdogs to hamburgers?

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

      I dont know how your supposed to suck a hamburger...

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

    Thank you so much you helped me understand coding so much more.
    👍

  • @Blaze-cz1eu
    @Blaze-cz1eu 2 ปีที่แล้ว

    Hey thanks for these videos they help a lot!!!

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

    “its been 6 months im so so sorry”
    me watching 4 years later: you’re forgiven.

  • @gamerlyf9979
    @gamerlyf9979 5 ปีที่แล้ว

    this series has been the most informative than any other thing I have watched even the one roblox itself made

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

      are u a pro scripter now? or at least good at scripting. Just asking people to see if they didnt give up

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

      @@JOEEDXCSDF ha, I've completely given up on roblox now lol. However I still do programming and game dev, just in other engines now

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

      ​@@gamerlyf9979 ohh right lol goodluck

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

    I like how you made the same mistake on the last events video with the parenthesis

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

    I'm going to make a little script about everything i learned:
    local hotdog = "thanks for everything devking"
    print(hotdog)
    local hamburger = 2
    if hamburger == 2 then
    print("yesss")
    end
    game.Workspace.Baseplate.Anchored = false
    wait(2)
    game.Workspace.Baseplate.Anchored = true
    Ik that's almost nothing and it may e wrong but ty for the help dev king

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

      you can also change other properties like color, transparency, collisions, and more

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

      I think it's correct

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

    another thing is when writing it hit.Parent.Humanoid.Health = 0 for other games that decrease health when you touch like lets each time you touch it it decreases half of your hp you can do hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-50 if you -100 you die -50 you will also die because theres alot of parts of your body touching the part so this is just a thing i found

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

    if you are watching this through the playlist, you are 1 episode before the red sweater 6. the last 6 episodes (where the thumbnails show tapwater wearing a red sweater)

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

    3:44 that explains why one of people i know in discord made a script to make it damage 14 but when you touch it it one shots you

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

    i just noticed this was uploaded on my birthday

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

    bro you are great at explaining things

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

    cant still believe i was able to learn this much at scripting within 3-4 days.Thanks so much TDK.Respect bro and keep up and the thing is i am 14 yrs old("ik i am pretty old but lolololooloolol")

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

      you're a fetus you're not "pretty old" wtf

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

      @@QUBIQUBED i literally laughed at that

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

    If you wantit only to fire when your intire model body touches r you can check for huminoid child hitting the part

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

    when he does the kill thing how does he set a parent to the parameter hit.parent:FindFirstChild("Humanoid") how does something become a parent of a parameter??

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

    events are my favorite subject

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

    hey dev! i love your videos. I have a question, how do you move from one frame to another? like when you press play, i want to go to another menu.

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

      example : button.mousebutton1click:connect(function()
      frame.visible = false
      frame2.visible = true
      end

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

      Jennifer J a bit late buddy

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

      Aixryl
      At least someone responded with an answer. Be a bit considerate and give the guy some credit.

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

      how did scripting go fo ru

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

      @@Real_AgilityYT terrible

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

    Whenever I tried to do to touched it did not automatically show it and whenever I tried to go in to step on the part it said touched is not a valid member of workspace

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

    1:30 fun fact you can say part.transparency 1 so it is invisible lava part so people will step on it and BOOM it is NOW A TROLL OBBY

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

    I did not realize what hit was until I looked closely that the hit was in the function and the function was linked to Touched XD it's like a parameter or a argument

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

      Lol i guess you never saw it the way he did

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

    But then I wanna scale body part, so how do I make instead of health, it will be a body part, and get scaled.

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

    something you can do is game.Workspace.Part.Anchored = false wait() game.Workspace.Part.Anchored = true so if you touch the part it unanchors but if you stop touching it it anchors.

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

    why we need :connect (funcition() when i use the code
    local part = script.Parent
    part.touched:connect(funcition()
    print("HI")
    end)

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

      i am new so i don"t know:))

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

      @Animaytics thank you:>

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

      @Animaytics hey can you add me on discord, thank you for your help my discord is Riryo#1652

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

      Leaving comment here so I can get the answers

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

      @@MichaelR1275 Ask away

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

    Made a kill brick for the first time without copy/pasting! I still needed help from the tutorial, but I did a lot better than last time I made a kill brick :3

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

    even if he misses smth its really close to the correct sricp. i got lost at the very end and olmost gave up but found out what to do by my self and it works now.

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

    i love your tutorials

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

    12:12 man I miss that sound so much 😢

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

    thank you for this tutorial man i was able to make a Heal version
    local HealPart = script.Parent
    HealPart.Touched:Connect(function(heal)
    if heal.Parent:FindFirstChild("Humanoid") then
    heal.Parent.Humanoid.Health = 100
    end
    end)

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

    im the 2000th like :D

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

    I have been speedrunning this series for 45 minutes, i think i actually learned nothing though because i already knew all it

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

    Very good video. Just a question . How I make the same BUT a message appears when I have touched the Part ONLY with LeftFoot?

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

      So you want it to kill you only when you touch with your left foot? If not, please explain so I can help you out :)

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

      @@xealmcreepypastas4361 Thank you for replying. I have found the answer ! Cheers

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

    The Dev King : Hey guys it's the Dev King here
    YT : Hey guys it's an effing here

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

    When I do the Part.Touched:Connect(function(hit) or something it says that touched isn’t apart of the script service

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

    THANKS FOR THE HELP thanks for it I made a game that you touch something you get other stuff

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

    you should uploud this is really useful

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

    hi i learnt how to create and delete new objects from scripting with the help of the code examples from roblox

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

    9:02 Don't mind me, just a timestamp for where I left off :D

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

      good luck!

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

      @@devRebirth thanks!

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

      Good luck

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

      how good are you at scripting now?

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

      @@angrytoast3987 How about U?

  • @jerryli2053
    @jerryli2053 5 ปีที่แล้ว

    STREAM TODAY OR TMRW CUZ U SAID TODAY on ur alt acc btw I didn’t know you had another channel until today lol

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

    Nice vid

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

    This is my favourite part of the tutorial 11:00

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

    I didn’t know how much I already knew about Roblox scripting until I skipped almost 90% of these tutorials due to already knowing them 😅😅

  • @handsomechocolatebar276
    @handsomechocolatebar276 5 ปีที่แล้ว

    Finally!

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

    Didn’t you teach us two different ways to code events and the object browser in episode 10?

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

    Dev king i have a question i realize this video is old but what animation plugin are you using

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

    How would you code the touched part to make it where it can only be touched one time, regardless of how many times the player steps on it?

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

      yes how!?!?!

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

      @@frostyhalo I actually just figured this out the other day! You need to add a 'debounce' to the code. Here's a link that shows how to do it!
      th-cam.com/video/eyQ11rXzee4/w-d-xo.html

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

      @@theartisticfox9050 Thanks man!

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

      you can use the IF command, ie. IF status == untouched THEN status = touched (continue your code here), so once the code is fired, your status will change and the next time it gets fired, it wont get through the "if"

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

    Even after 6 months he’s still has a obsession with hotdogs and hamburgers

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

    Why do you need local part = script.Parent and then Part.Touched:Connect(hamburger) isn't the parent of the script part? So why can you not just write Part.touched:Connect(Hamburger) without any variables?

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

    I have done the hamburger part of the video exactly as you have, yet it still says "Hi" from touching the baseplate at the beginning of the test. Why is that?

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

      Oh, I see. You moved the part up so that it wasn't touching the baseplate.

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

    this is helpful im making an obby thanks

  • @bankin.1798
    @bankin.1798 10 หลายเดือนก่อน

    I haven't heard the Oof sound in years lol!

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

    i hope that roblox put a description in the object browser so we know what a event or function can do. like if you never mention about touched event gives what touched them then i will never know

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

    very helpful thanks~~

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

    More consistent schedule plz, your vids rlly help me.

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

      are u a pro scripter now? or at least good at scripting. Just asking people to see if they didnt give up

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

      @@JOEEDXCSDF Unfortunately no. Long story short, I ended up finding a hobby/work skill that interested me more (Welding) so I went to school for that and now that’s what I do both as a hobby and for work.

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

      @@glorifiedelement oh, sick

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

    swag.

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

    I got a 19minutes 50s ad on this video and watched all of it and I don't know why. And there as 2 ADS!

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

    Made a script that opens the door when you say something. It's like guess the character :)
    local door = script.Parent
    local Players = game:GetService("Players")
    local function doorSystem(t)
    door.CanCollide = false
    door.Transparency = .5
    wait(t)
    door.CanCollide = true
    door.Transparency = 0
    end
    Players.PlayerAdded:Connect(function(plr)
    plr.Chatted:Connect(function(msg)
    if string.lower(msg) == "mario" then --This makes it so players can use uppercase or lowercase
    doorSystem(1)
    end
    end)
    end)

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

    okay so i put in this
    local Part = script.Parent
    Part.Touched:Connect(function()
    print("hi")
    end)
    when i press play this comes up
    Touched is not a valid member of Workspace "Workspace"
    idk what the problem is?

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

    There's an erroer where apperently "Touched" is not a child of Workspace and the prgram won't work when i touch the part

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

      I had that problem too, the script has to be a part of the part and not be in the workspace

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

    ❤Love from France

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

    would any of this system change if I have a starter character and not the original?

  • @unknown-ek2gw
    @unknown-ek2gw ปีที่แล้ว

    you are a living W

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

    he probably spent 6 months getting rid of his addiction of hotdogs lol

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

    Quick question, do you think when you touch the part you take damage then come back to it and take that exact same damage again? Without it being a one time thing?

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

      U can make it like a click dmg thing if u make a health script

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

      If you want that when you touch the brick it does 10 damage, you can do
      hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10

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

    Do you have a discord or something that way its easier to ask questions and stuff

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

      discord.gg/FKcSyRh I made one!

  • @Frank-qm2xl
    @Frank-qm2xl 5 วันที่ผ่านมา

    one thing i would have wanted is for him to explain what scenario this would be used in

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

    This time I actually wrote the script at 11:34 by myself and only pressed play after the script was working c: I'm learning

  • @noone-rp4dw
    @noone-rp4dw 10 หลายเดือนก่อน

    whats the point of adding local part = script.parent? shouldn't the game already know that part is the parent?? and why didn't we have to add it before?

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

    Can u begin making ingame examples?

  • @Atharv_Playz10-
    @Atharv_Playz10- 18 วันที่ผ่านมา

    i never knew the dev king was tapwater

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

    also to make it not touch the baseplate now just anchor it

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

    you didnt define hit so how did it know that its the part that are touching it. please tell me i am really confused

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

    Will the hp just stays there or keep damaging if the hit.parent.humanoid.health = 15 or something ( not 0)

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

      it will just set your health to 15. Like if your health is like 1 or 100, it will set your health to 15 if you touch the part.