How To HITBOX Like A PRO | Roblox Studio

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

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

  • @heyothefunnier
    @heyothefunnier 6 месяцев назад +58

    there's NO SHOT you uploaded this as i was looking for hitbox tutorials. i refuse to believe it

    • @BushMan-js8jw
      @BushMan-js8jw 6 месяцев назад +3

      I was just thinking of this concept 2 days ago

    • @iamLudius
      @iamLudius  6 месяцев назад +10

      Some say I'm a psychic. Thanks for the comment :]

    • @iamLudius
      @iamLudius  6 месяцев назад +7

      I'm telling you, I can read minds. Also thanks for the comment :]

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

      @@iamLudius 💀🤣🤣

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

      real

  • @MajesticUC
    @MajesticUC 6 месяцев назад +36

    Although this is better than .Touched, it still isn't perfect. Firstly, its typically looked down upon do even create parts for hitboxes. Its better to use getpartsboundinbox since it is less computationally expensive and you dont have to waste resources creating and deleting parts.
    Another thing is making the hitbox cast on the client rather than the server. As you mentioned before with .Touched, when someone has high, hit reg is a lot worse! This is the same with every method assuming you do it on the server and this is because your position on the client is different to your position on the server. The way to fix this is very simple. Simply just cast the hitboxes on the client meaning that if it looks like you hit someone, then you do hit them 100% of the time. The only downside of this is it is more exploitable but if you do checks on the server then it should be fine.

    • @iamLudius
      @iamLudius  6 месяцев назад +7

      It had never occurred to me to actually spawn the hitbox in the client, but it's actually genius now that you explained it, it would really solve some potential big issues. I've never heard about GetPartsBoundInBox, but from the little research I've done so far it sounds very promising.
      W comment! I really appreciate it, I learned something new today. Can't wait to share it with the community :]

    • @Mr.Kenshiro
      @Mr.Kenshiro 6 месяцев назад

      Yo Majestic hi!

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

      @@iamLudius im not gonna act like i was the first person to come up with the idea and im a complete genius however you still do need to be careful when doing it since it will allow exploiter to fire events saying that they have hit someone when they actually havent. Make sure if you do end up doing this, to make the remote event only available to the client when the player is actually doing an attack. Also make sure the person getting hit isnt too far away.

    • @Thomaaas07
      @Thomaaas07 5 месяцев назад +8

      @@MajesticUC A simple magnitude check can solve this.

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

      ​@Thomaaas07 yep it sure can

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

    Your so underrated. No free model Link, No bs, Gives explanation so the person can actually learn. Keep it up man!

  • @RealAimYT
    @RealAimYT 6 месяцев назад +9

    LUDIUS, WHY DO U MAKE VIDS WHEN I NEED EM. ARE U THE GOAT OR WHAT?

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

      I'm just happy to help bro. Thanks for the comment :]

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

    i just spend hours trying to make a collision system for my placement module & nothing i tried worked until i found this, thank you so much!

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

      An updated more effective version is releasing tomorrow, I recommend you watch that one

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

      @@iamLudius will do

  • @RealExposify
    @RealExposify 6 месяцев назад +8

    Another video, another banger, keep it up lad (im edging)

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

      STOP IT

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

      I will try my best to keep uploading good content :]

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

      Yeah he kinda should jajajaja

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

      @@iamLudius btw thanks so mucgh u really posted it when i enedded it
      i am currently trying to make a punch

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

      get some help bro 🤣

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

    This is actually amazing advice. Thanks man 👍

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

      I'm happy to help, thank you for the comment :]

  • @CTGbaby
    @CTGbaby 6 месяцев назад +7

    the timing is crazy bruh I spent the past few days tryna find a good way to make hitboxes (all the good scripter Ik gatekeep their methods)

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

      Hopefully this video helped you a bit. Also thanks for the comment :]

    • @happyocean3115
      @happyocean3115 6 месяцев назад +2

      Good scripters dont gatekeep

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

      @@happyocean3115 I need to know these scripters then

  • @Zecoder
    @Zecoder 6 месяцев назад +4

    very educating video, it's interesting... interesting

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

      Bro typed interesting twice? Must be really interesting then.
      Also thanks for the comment :]

  • @randomguy3002
    @randomguy3002 3 месяца назад +2

    You deserve a sub

  • @Donpa07
    @Donpa07 6 месяцев назад +2

    My king ludius never fail to fill me up with his videos

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

    the voice of ludius still got me edging🤤😩

    • @iamLudius
      @iamLudius  6 месяцев назад +2

      Comments like these got me asking myself what's happened to humanity... But thanks for the comment :]

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

      @@iamLudiushell yeah bbg

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

      STOP BRO

    • @Player20XX
      @Player20XX 6 месяцев назад +2

      @@iamLudius ByteBlox ahh community

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

    Literally uploaded right when i needed hitboxes for my game

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

    broo i never knew animation events existed tyyy

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

    IAM BETA
    THIS THE BETTER YT

  • @DeltaModelX
    @DeltaModelX 6 месяцев назад +2

    mad underrated

  • @Tettzz
    @Tettzz 14 дней назад

    Btw Touched won't work if part1 was already touching part2 before you made the Touched connection.

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

    Bro I needed this so much

  • @premex9210
    @premex9210 6 месяцев назад +2

    Thanks a lot, this was really helpful 🔥

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

    the reason why i went here because i funking forgot how do i make hitboxes like this, i stopped coding and working on my game that i forgot how to do it

  • @Kailyn150
    @Kailyn150 6 месяцев назад +2

    great tutorial

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

    Can’t you just use the raycastHitboxV4 module instead of creating a part?

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

    Tysm! this was really helpful!!

  • @Soul-zi8sw
    @Soul-zi8sw 4 месяца назад

    Love the video bro keep going, if you can i would love if you can make a video on how to make knockblack like a pro or bodyvelocity and linearvelocity?

  • @ThatoneKamo
    @ThatoneKamo 25 дней назад

    ok but what do you put in replicated storage

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

    I always thought the right way was to play a animation on the client and then making the event on the client and fire a remote to the server to create the hitbox. Is that way wrong?

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

      Nope that way is completely valid, it's actually the most optimal way to do it, but I didn't want to overcomplicate things. Thanks for the comment :]

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

    for someone reason it only works once. like it makes a new part the first time i activate it but the second time it doesnt

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

    first :)

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

      Yessir! Thanks for the comment fam :]

  • @-arthura
    @-arthura 5 месяцев назад +3

    pro hitboxes my ass. first of all, you weld a part and then destroy it not even a physics tick later, second of all players move around the map, they dont stand there, taking hits.

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

    This helps a lot, the only problem is I repeatedly hits the enemy, how do I fix that?

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

    How can I make hitboxFunction activate only one time instead of 7?

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

    I'm trying to make the character take damage but he just dies instead, I'd like some help, please.

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

      add a variable called "DamagedHumanoids" and make it an empty table.
      Now before you damage the character, check if the humanoid is already in the table, if its not then you can proceed with the damage code.
      after you're done damaging, add the humanoid to the damaged humanoids
      now if you're keeping a global damaged humanoids table, i reccomend you clear it everytime an attack is finished.

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

    you gone make me type this code out gang

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

    Yooo ty man

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

    WE LOVE YOU LUDIUS

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

    is this an on srver event right?

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

      Yup

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

      @@iamLudius thak you so very very much bro idk why im not subbed to u yet

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

    1:14 men am ded

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

    hitbox is also touching my character?

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

    PUT THE MUSIC LOURDER I CAN STILL HEAR YOU

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

    make shop and trading system tutorial

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

    thsi detects the local player to? and it detected ur accesory

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

    Get this man out of my walls

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

    7,69k subs

  • @mui-monke9537
    @mui-monke9537 5 месяцев назад

    I use the script but it doesnt seem to detect the Humanoid and im not sure what to do

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

    Nice video, your points are well said and have solid proofs, love them.
    Unrelated but can you make a tutorial how to make uppercut and downslam? I am making a combat system but i feel incomplete without them and i happen to struggle making them work

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

    Can this work on tools?

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

    wait animation events exist??? help 😭😭

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

    nah fam you stalking me

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

      How did you notice? jajajaja
      Thanks for the comment :]

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

    4:01 ereh

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

    it one shot it how i can repair it lol

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

    Doesnt work for some reason

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

    i said this somewhere but stop creating new instances everytime u do smth bro like doing a input if its a vfx okay, But dont do that in hitboxes

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

      why not

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

    Fourth

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

      Thanks for the comment bro :]

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

    Handling animations on the server really isn't the best way

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

    iwh472

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

      Thanks for the comment :]