Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 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!

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

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

    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

  • @l.b.2949
    @l.b.2949 Год назад +122

    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 5 месяцев назад

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

  • @jxshyyy17
    @jxshyyy17 4 года назад +343

    surprised you didnt call the part hotdog lol

    • @UnusefulGaming
      @UnusefulGaming 4 года назад +32

      he's grown so much after 6months

    • @stak321
      @stak321 3 года назад +29

      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 3 года назад

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

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

      Classic

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

    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 >,

  • @DatToxicGuy
    @DatToxicGuy Год назад +92

    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 Год назад +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 Год назад

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

    • @DatToxicGuy
      @DatToxicGuy Год назад +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 Год назад

      @@DatToxicGuynice :D good luck!

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

      @@DatToxicGuy damn

  • @Mahe-Ree
    @Mahe-Ree 11 месяцев назад +20

    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

  • @jakethedancingdog630
    @jakethedancingdog630 Год назад +31

    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 Год назад

      hows your scripting journey been

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

      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 Год назад

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

  • @Youtuber-sq2fj
    @Youtuber-sq2fj 5 лет назад +347

    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 😎

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

    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 3 года назад

      Lol

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

      Stop complaining

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

      @@Xerlxyz he is not complaing

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

      Next time it's 5years lol

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

    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

    • @PIMGUIMOFICIAL
      @PIMGUIMOFICIAL 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

  • @makeitunreal6057
    @makeitunreal6057 2 года назад +10

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

  • @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 4 года назад +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.

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

    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

  • @randomperson9997
    @randomperson9997 3 года назад +18

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

  • @katkant
    @katkant 2 года назад +31

    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 года назад +2

      Thx for explaining, those helped alot.

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

      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 2 года назад

      Thanks for breaking it down dude

  • @dumbaszs1817
    @dumbaszs1817 3 года назад +9

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

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

      *timesaver

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

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

  • @davitucsonn2243
    @davitucsonn2243 4 месяца назад +1

    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

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

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

  • @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

  • @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?

  • @unknownedleaf
    @unknownedleaf 7 месяцев назад +3

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

  • @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. :)

  • @georgespaceagency9894
    @georgespaceagency9894 Год назад +2

    events are my favorite subject

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

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

  • @Rocky-Mein
    @Rocky-Mein 3 месяца назад +2

    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)

  • @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

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

    has he moved from hotdogs to hamburgers?

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

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

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

    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

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

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

  • @user-zl3yy2uk6g
    @user-zl3yy2uk6g 10 месяцев назад +1

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

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

    these are the best tutorials i have ever seen

  • @user-no9vi4rf4x
    @user-no9vi4rf4x 4 месяца назад +2

    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)

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

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

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

    THIS IS THE EPSIODE I NEEDED

  • @mexicanfloppa
    @mexicanfloppa Месяц назад +2

    4:09 I SWEAR BRO WAS GONNA WRITE HOTDOG

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

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

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

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

  • @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??

  • @R0BL0Xtv
    @R0BL0Xtv 5 месяцев назад +1

    12:12 man I miss that sound so much 😢

  • @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

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

    i am learning so much thanks for the tutorials

  • @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

  • @Mighty000
    @Mighty000 5 лет назад +4

    Can u begin making ingame examples?

  • @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 6 месяцев назад

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

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

    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 😅😅

  • @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

  • @TS5Dev
    @TS5Dev 22 дня назад

    The old oof sound brings back memories.. 🥺

  • @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!
      ruclips.net/video/eyQ11rXzee4/видео.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"

  • @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

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

    Thank You Devking for making these awesome videos!

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

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

  • @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.

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

    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

  • @littlewarp
    @littlewarp 3 месяца назад

    This is my favourite part of the tutorial 11:00

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

    i just noticed this was uploaded on my birthday

  • @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

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

    More consistent schedule plz, your vids rlly help me.

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

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

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

      @@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 6 месяцев назад

      @@glorifiedelement oh, sick

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

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

  • @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)

  • @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 6 месяцев назад

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

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

      @@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 6 месяцев назад

      ​@@gamerlyf9979 ohh right lol goodluck

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

    At 7:10 I was like "Did I just have discord open?!?!"

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

    bro you are great at explaining things

  • @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

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

    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

  • @Blaze-cz1eu
    @Blaze-cz1eu 2 года назад

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

  • @akarshsrivastav444
    @akarshsrivastav444 27 дней назад

    to all the guys from 4 years back, we have got words like "rizz"

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

    this is helpful im making an obby thanks

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

    instead of
    hit.Parent.Humanoid.Health = 0
    you can do
    hit.Parent.Humanoid.Health = hit.Parent. Humanoid.Health - 10
    this will damage you a bit when you hit it, instead of instantly killing you

  • @Fearlesscardinal
    @Fearlesscardinal 3 месяца назад

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

  • @nps5607
    @nps5607 3 года назад +7

    I tried to join your server to start learning how to script, when I asked something in the scripting help channel they just said I was asking basic stuff and that was not the topic of the channel because I was asking basic stuff.
    You said that we could join the server if we had a problem (even a simple one) and then ask for help, but if you said that why would people from your community treat a beginner like that? That makes no sense.

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

      I can help you if you need any

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

      People are people. Some are toxic and leading other people to be toxic. Just how it is. If you need help, you can ask me. I am not an expert but i know enough to understand it

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

      times have changed, this video was posted 1 year ago

  • @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

  • @bankin.1798
    @bankin.1798 Год назад

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

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

    i never knew the dev king was tapwater

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

    i made a script that takes away health instead of instantly killing you :D
    local part = script.Parent
    part.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
    end
    end)

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

      I tried it but i couldnt figure out how to make it not insta kill you any help?

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

      @@MrSaladBoi You could try to add a wait(1) or something underneath the hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5.

  • @CygnusX2
    @CygnusX2 2 месяца назад +1

    12:14 THE OOF SOUND 😭

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

    I wanted to try remaking the script you did at the end to see if I understood everything but it didn't work, it give me this error
    Workspace.Part.Script:3: attempt to index function with 'Parent'
    and this is the script i did, could someone tell me what I did wrong?
    local part = script.Parent
    local function hit()
    if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent.Humanoid.Health = 0
    end
    end
    part.Touched:Connect(hit)

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

      you got the 2nd line wrong which triggered the 3rd line to be unknown. the right script is
      local part = script.Parent
      part.Touched:Connect(function(hit)
      if hit.Parent:FindFirstChild("Humanoid") then
      hit.Parent.Humanoid.Health = 0
      end
      end

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

      Neil Samtani alright, thanks for the explanation

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

      @@titouan496 No Problem.

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

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

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

    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.

  • @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?

  • @acknant9863
    @acknant9863 8 месяцев назад

    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.

  • @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

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

    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!

  • @Frank-qm2xl
    @Frank-qm2xl Месяц назад

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

  • @irfanhakim4617
    @irfanhakim4617 2 года назад +5

    Same, but different:
    local Part = game.Workspace.Part
    Part.Touched:Connect(function(hit)
    if game.Players:GetPlayerFromCharacter(hit.Parent) then
    hit.Parent.Humanoid.Health = 0
    end
    end)

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

    The funny thing I learnt in this video is
    Hit.Parent:Findfirstchild XDXDD

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

    Bro I took over 30 minutes to understand how that killblock works but now I know

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

    "hit.Parent:FindFirstChild"
    ooookaaaayyyyy buddy

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

    just made a script that anchors your left lower leg and removes your head (r15 why not) from the things you taught me
    script.Parent.Touched:Connect(function(hitTouch)
    if hitTouch.Parent:FindFirstChild("LeftLowerLeg") then
    hitTouch.Parent:FindFirstChild("LeftLowerLeg").Anchored = true
    wait(1)
    hitTouch.Parent:FindFirstChild("Head"):Destroy()
    wait(1)
    hitTouch.Parent:FindFirstChild("HumanoidRootPart").Anchored = true
    end
    end)

  • @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!

  • @medasgaradauskas5027
    @medasgaradauskas5027 23 дня назад

    for anyone out there if the kill script isn't working (like me) just remove the findfirstchild part and it will work!

  • @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.

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

    TheDevKing: I oofed
    Everyone else: you died

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

    i love your tutorials

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

    What if you want to slowly but continuously take health away

    • @baconbitz3474
      @baconbitz3474 5 лет назад +1

      gamefan449 maybe you could add a while loop that takes health for every loop?

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

      @@baconbitz3474 Just figured it out lol

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

    local part = script.Parent
    part.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent.Humanoid.Health = 0
    end
    end)

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

    one question what does part = script.parent do?

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

      It's been a week so you probably figured it out. "Part" is a variable, in this case, meaning script.parent is simply saved into it. The script.parent finds the script, and then it's parent. E.g If a script were in a part called 'Duck' it would find the script, and then the parent is 'Duck'.

  • @syclasmfn1850
    @syclasmfn1850 5 лет назад +1

    you should uploud this is really useful

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

    Aaaaaaaa light theme
    RIP eyes

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

    i believe this man is using hotdog to infect his viewers with the word “hotdog”