How to PATHFIND in Roblox 2024

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024
  • Easiest pathfinding for your AI's and NPC's in Roblox Studio.
    Link to API: www.roblox.com...
    Good luck coding! Check out the explanation video or the Info file inside of the modules.
    #robloxstudio
    #npc
    #robloxdev
    #pathfinding
    #forbidden

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

  • @CritDEV
    @CritDEV  Год назад +205

    Link to API
    www.roblox.com/library/11229474803/Forbidden-API-OFFICIAL
    Enjoy making your game!

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

      it didn't@Bolita-sh1ts

    • @user-qp1qs5pe1w
      @user-qp1qs5pe1w Месяц назад +4

      Thanks

    • @Losted043
      @Losted043 9 дней назад

      Bro cant we use a beam with attaching to the players rig

    • @CritDEV
      @CritDEV  9 дней назад

      @@Losted043 what do you mean?

    • @JohnWoods-j2t
      @JohnWoods-j2t 4 дня назад

      @@Losted043?

  • @MarkCooper0
    @MarkCooper0 Месяц назад +406

    That dummy following you in default pose and and catching up to you is creepier than any other horror game I've seen bro 💀

    • @justjordan6147
      @justjordan6147 Месяц назад +6

      Imagine walking up to a coil head, your light flashes off and you see a face appear on it giving ya arm a little nibble. That face was traumatizing and thinking back almost gives my stomach the rumbles. 😢

    • @romm24sa52
      @romm24sa52 12 дней назад +3

      top 5 scariest jumpscares

    • @l3alfie693
      @l3alfie693 9 дней назад +1

      ​@@justjordan6147go eat some food then?

  • @Ash_Can0706
    @Ash_Can0706 2 месяца назад +167

    ez line of code
    “- -Make me a pathfinding system”

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

      More like "IfPlayer; follow" (I actually don't know if this works lol)

    • @MarketBlob
      @MarketBlob Месяц назад +3

      Ask that question about 10000 times 😂

    • @mohammadshamayleh-gz6oc
      @mohammadshamayleh-gz6oc Месяц назад +3

      lol whats the best part is that idk how to code and i asked chat gpt how to make one with spisifcations and it worked but its a bit buggy (done in 2 hours)

  • @jones_y
    @jones_y Год назад +443

    sorry, one line? what kind harry potter x voldemort bs is this

    • @CritDEV
      @CritDEV  Год назад +66

      xD idk, just some code man

    • @GiulianoBR3
      @GiulianoBR3 Год назад +127

      3000 lines but you cant press enter

    • @jones_y
      @jones_y Год назад +24

      @@GiulianoBR3 LMAO

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

      ppl actually do that hoping that itll be harder to read@@GiulianoBR3

    • @lightbulbproductions6847
      @lightbulbproductions6847 10 месяцев назад +52

      Never question WHY the code works
      The code is aware of this and will force itself to not

  • @Just_SpincerYT
    @Just_SpincerYT Месяц назад +27

    As an extremely new developer who has only just learned use blender and rig models and wants to create a fully working path finding script for that model....I was extremely terrified upon hearing those first 2 sentences, so yes I will be using that other method 😃

    • @SaleMales
      @SaleMales 21 день назад +1

      there a SimplePath module which is helping a lot

  • @loganroman5658
    @loganroman5658 8 месяцев назад +49

    That thumbnail looked cool though

  • @InstaplayJT
    @InstaplayJT Месяц назад +13

    you might not believe it but this guy saving “suffer like i did” IS a project moon reference.

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

      @@InstaplayJT unfortunately I have no idea what that is

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

      @@CritDEV didnt think you would respond ngl loll project moon is the name of a group that makes games

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

      Project moon mentioned
      Activating project moon sleeper agent protocol.

  • @squigglesz
    @squigglesz 7 месяцев назад +15

    thanks a lot im working on a horror game and this made the monster 10+ iq

  • @OrganicMilkGang
    @OrganicMilkGang 10 дней назад

    i've been learning how to build for a while now since i've been scripting for years and wanna be able to create decent games on my own but i hopped back into learning a bit of scripting and holy crap this is amazing

  • @totallypump
    @totallypump 17 дней назад

    Pathfinding took me almost a literal month of searching for fixes online 😭

  • @ambush_but_the_worst
    @ambush_but_the_worst 13 дней назад

    that unmoving chasing dummy is terrifying, make it have a jumpscare and oneshot the player then it'll be perfect for a horror game

    • @CritDEV
      @CritDEV  13 дней назад

      @@ambush_but_the_worst Forbidden provides you a perfect skeleton for introducing behaviors such as that!
      See the precoded solutions with forbidden on my channel

  • @jamaelmi343
    @jamaelmi343 Месяц назад +3

    Pathfinding is good as unlike normal run to the nearest player it wont run into walls and you can chose what it can touch and what it cannot

  • @Axcyantol
    @Axcyantol 11 дней назад

    i used an already made thing, had to rework like half the stuff for what i was trying to do, and now the enemy slows down to a specific speed after the first pathfind

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

    thought this was a suiryu ult move ;-;

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

    You can just use the ai of the nextbot in the free model toolbox but im just saying you can make it more better :)

  • @JezzyCrazyTV
    @JezzyCrazyTV 5 месяцев назад +7

    Scary

  • @alexsgarbagehut2517
    @alexsgarbagehut2517 8 месяцев назад +11

    I used this AI in my zombie chase and when zombie killed the player, the AI just stops and the "NoPath" error appears. How do I fix it based on code?

    • @CritDEV
      @CritDEV  8 месяцев назад +1

      Since the players character no longer exists, the ai cannot path to the part that no longer exists. Update the references and recall the api

  • @WhiteCircle63
    @WhiteCircle63 8 месяцев назад +2

    Bruh. I once had some sh** in pathfinding that caused it to lag. I solved it now and it was something with NetworkOwnership. Pretty stupid and caused a lot of demotivation.

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

    I got jumpscared by the dummy💀

  • @purpledragonuntitled
    @purpledragonuntitled 8 дней назад

    I did it, it was so so so i even completed a huge maze and it found its way out

  • @persona8614
    @persona8614 Год назад +7

    thanks dude

  • @TheWiceMice
    @TheWiceMice 3 месяца назад +4

    How is it annoying roblox literally has a service meant for path finding

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

      boilerplate code.

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

      True but it’s way too simple, like you could use it for 2 hours and already know everything about it. Suuuuper low potential/use cases

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

      @@TackyToons some people just want to test/have a simple pathfinding AI. And for most games, this is fine and avoids ai getting stuck behind walls

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

    Meanwhile minitoon making piggy pathfinding in 5 days

  • @Smurfis
    @Smurfis Год назад +7

    Thanks, anyone reviewed this?

    • @CritDEV
      @CritDEV  Год назад +4

      No, and I’d rather at this point recommend receiving the regular code or looking at a tutorial on how it works. The API works if you wish to use it but please keep that in mind.

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

      I does not work

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

    does it have an adjustable range on how far it detects players?

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

      Yes in the config there is detection range

  • @jeremycastillo8705
    @jeremycastillo8705 26 дней назад

    Me make path finding non existent

  • @Argo57
    @Argo57 7 месяцев назад +1

    I thought it was a deepwoken Pathfinder video 💀

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

    great job it doesnt constantly do it and it keeps breaking for no god damn reason

  • @BIASXED
    @BIASXED 20 дней назад

    By the way you can make a pathfind script in around 5 lines of code… so idrk why you’re giving this idea that its difficult

    • @CritDEV
      @CritDEV  19 дней назад

      because you can't :), especially with built features such as asynchronous tracking.

  • @Classic_Tomfoolery
    @Classic_Tomfoolery 29 дней назад

    Dude i can't even code functions 😭

    • @orangesel9338
      @orangesel9338 19 дней назад

      just learn programming using python and move on to lua and roblox api

  • @idk-qm4db
    @idk-qm4db Месяц назад

    algorithm

  • @user-po2gm9nw8x
    @user-po2gm9nw8x 23 дня назад

    my stupid ass fna just make a chase code for a zombie model add a gun tool a crappy mad and call it a day

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

      i made a video for that. you can just copy the code and be done with it in 10 minutes !

  • @man.im.ded.
    @man.im.ded. 22 дня назад

    🫸🔴🔵🫷🟣

  • @Soyoulikevr2
    @Soyoulikevr2 Год назад +13

    Bruh mine does not path find

    • @Fayroll5
      @Fayroll5 9 месяцев назад

      ​@@messengercreator ai should stop taking human jobs. Im a roblox dev and ai at the end of the day can't help

    • @Fayroll5
      @Fayroll5 9 месяцев назад

      @@messengercreator for who? Never seen anyone use it

    • @Fayroll5
      @Fayroll5 9 месяцев назад

      @@messengercreator ur the only one who uses it and I've used it just now and it's trash it can't even make you die when u hit e im much better than a chatbot

    • @Fayroll5
      @Fayroll5 9 месяцев назад

      @@messengercreator but for new people it's good but still they should learn

    • @Fayroll5
      @Fayroll5 9 месяцев назад

      @@messengercreator dude wtf that doesn't even make sense. Learn ur grammer...

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

    Widawwy

  • @Skillzlight838
    @Skillzlight838 9 месяцев назад +1

    how do i change the character

    • @CritDEV
      @CritDEV  9 месяцев назад

      change the variable for the character in the api call

  • @CloverKismet
    @CloverKismet 11 месяцев назад +1

    #Truth

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

    i still dont know how to use this tho

  • @MoHa-dv4fb
    @MoHa-dv4fb 6 месяцев назад

    Algorithm

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

    0:01

  • @Frostbite-q3v
    @Frostbite-q3v Месяц назад

    I use raycasting

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

      @@Frostbite-q3v the script uses ray casting to determine whether something is in line of sight.
      Nice though!

    • @Frostbite-q3v
      @Frostbite-q3v Месяц назад

      @@CritDEV Yea, I was just saying that I use it so that I can make models that can teleport next to you, it's very cool.

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

      @@Frostbite-q3v nice !

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

    0:00

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

    _bruh_

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

    it takes me too long not two weeks

  • @jace-k6f
    @jace-k6f Месяц назад

    whats pathfinding?

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

      @@jace-k6f the system where an NPC avoids obstacles to reach a destination.

    • @jace-k6f
      @jace-k6f Месяц назад

      @@CritDEV ok thx

  • @anshpal1
    @anshpal1 11 месяцев назад +1

    Bhai kya aap

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

    Jg

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

    Jg8

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

    Ye channel

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

    Mujhe de skte ho?

    • @Ameya837
      @Ameya837 9 месяцев назад

      translation for people who dont know hindi : Could you give me it?

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

      google does not say that lol. Thank you for translating.

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

    🫡