How to PATHFIND in Roblox 2024

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

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

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

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

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

      it didn't@Bolita-sh1ts

    • @JoaoMiguelSts
      @JoaoMiguelSts 7 месяцев назад +4

      Thanks

    • @Pulseon.R
      @Pulseon.R 5 месяцев назад +1

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

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

      @@Pulseon.R what do you mean?

    • @d..k_fantasy_knight
      @d..k_fantasy_knight 5 месяцев назад

      @@Pulseon.R?

  • @MarkCooper0
    @MarkCooper0 6 месяцев назад +1829

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

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

      top 5 scariest jumpscares

    • @l3alfie693
      @l3alfie693 5 месяцев назад +10

      ​@@justjordan6147go eat some food then?

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

      No it’s not scarier

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

      💀👌

  • @Ash_Can0706
    @Ash_Can0706 7 месяцев назад +623

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

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

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

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

      Ask that question about 10000 times 😂

    • @mohammadshamayleh-gz6oc
      @mohammadshamayleh-gz6oc 6 месяцев назад +7

      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)

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

      Chatgpt makes more errors than you think…

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

      @@Yichh nah man Siri DEFINITELY got your back

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

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

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

      xD idk, just some code man

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

      3000 lines but you cant press enter

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

      @@GiulianoBR3 LMAO

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

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

    • @lightbulbproductions6847
      @lightbulbproductions6847 Год назад +82

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

  • @Just_SpincerYT
    @Just_SpincerYT 6 месяцев назад +109

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

      there a SimplePath module which is helping a lot

  • @loganroman5658
    @loganroman5658 Год назад +79

    That thumbnail looked cool though

  • @ambush_but_the_worst
    @ambush_but_the_worst 5 месяцев назад +23

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

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

  • @InstaplayJT
    @InstaplayJT 6 месяцев назад +45

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

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

      @@InstaplayJT unfortunately I have no idea what that is

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

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

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

      Project moon mentioned
      Activating project moon sleeper agent protocol.

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

      You must suffer,like i have...

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

      Pm fans are everywhere omg 😭

  • @squigglesz
    @squigglesz Год назад +25

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

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

    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

  • @moonlight._.69
    @moonlight._.69 2 месяца назад +1

    As someone whose working on a project that needs pathfinding, thank you

  • @christophersoo
    @christophersoo Месяц назад +10

    Computer Scientist here! Roblox's pathfinding service uses an oversimplified version of the A-star graph traversal algorithm, this limits developers from setting custom thresholds for the heuristic function of the algorithm, which differs from game to game, i.e in a 2d static game, its probably best to set h(n) = 0, which is basically a standard dijkstra algorithm to minimize complexity and lag. And in more complicated games with dynamic objects, setting it to a higher value may be better to increase accuracy and so on. But again it's hard for roblox to classify what kind of game the developers are making, and that it is clear that Roblox prioritises user-friendliness over performance / accuracy. But maybe in the future they will use an RL approach to graph traversal instead!

    • @christophersoo
      @christophersoo Месяц назад +4

      Oh and before you all go and say "RL models take too much time to train for a simple and lightweight game like roblox!!"
      Just a reminder that transfer learning exists! And roblox's environment layout uses navmesh, which is a standard data structure used across many games!! Roblox can simply buy these pre-trained models and fine tune them on a sample of simple environments!

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

      Bro is SMART smart gawddayumn

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

      Bro actually knows what he's talking about goddamn

    • @umbralgaming3443
      @umbralgaming3443 3 дня назад

      You certainly know your stuff, you’re a computer scientist for a damn good reason because you’re amazing at it. Probably spend a long time trying to figure this out when you first started and now these issues look like simple problems with simple fixes

  • @loghtsy8057
    @loghtsy8057 2 дня назад

    A* + Octrees is one of the most efficient pathfinding algorithms for server side processing

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

    omg tysm i remember suffering trying to get it to work

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

    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

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

    I made a tutorial on the forbidden API but I credited you!

  • @Son-slipper
    @Son-slipper 6 месяцев назад +4

    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

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

    It's interesting that there's aPathfindingService built in, but I'm a starter Dev so I don't know if it's easy to use.

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

    a horror game where the monster walks the same speed as you but still gains on you due to finding a better path than you by using prediction and such would be amazing

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

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

  • @Bon88917
    @Bon88917 26 дней назад +1

    That dummy is creepy the way it caught up so fast 😂

  • @tdtnecniv3856
    @tdtnecniv3856 6 месяцев назад +13

    thought this was a suiryu ult move ;-;

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

      same lol

    • @tocino-k8s
      @tocino-k8s 4 месяца назад

      same lolol

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

      That’s exactly what I was thinking

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

    its because roblox has pathfinding built in but you need to setup your map to allow the npcs to pathfind correctly

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

    Tencell used it for the maze of bind glove

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

    This is basically a smoother pathfinding system
    than what i maded 😭

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

    I had to spend 2 and a half months perfecting a pathfinding npc I made, it was torture with all the debugging

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

    Now, put the map into pitched darkness and find some random broken wooden house, give yourself a flashlight, change lightning to future lightning, and there you go, a random dummy will continuously to follow you until you, idk leave the game

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

    Esto ya es más avanzado que el sistema de npc del Blox

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

    I just took toolbox script, modified it a BUNCH and it worked (in a single day)

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

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

  • @EclispeeIsha
    @EclispeeIsha 12 дней назад

    the default pose roblox dummy has the same energy as defalut pose heavy from tf2

  • @alexsgarbagehut2517
    @alexsgarbagehut2517 Год назад +12

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

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

    What about just adding a waypoint into the player and make it unanchored and transparency 1 so the rig or enemy walks towards the waypoint or in other words YOU

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

    Scary

  • @AGMEIDI
    @AGMEIDI 5 дней назад

    Dude, I thought it was a deleted move from tsbg's suyriu

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

    imagine a t-pose virus be chasing you lmao

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

    thanks dude

  • @VulaZon
    @VulaZon 5 дней назад

    just use simplepath, most easiest to understand and use pathfinding api

  • @Zek3W4ynE
    @Zek3W4ynE 2 дня назад

    I wonder how long nico's nexbots to pathfind the nexbot

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

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

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

      boilerplate code.

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

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

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

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

      Because it only generates points. It doesn't handle any logic of how to move.

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

    To All The TSB Players Who Thought This Was A Suriyu Alt Move, I was fooled to.

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

    Listening to the video: ❎
    Watching the dummy slowly chase the player: ✅

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

    Bro forgot "We learned from our mistake" 😭🙏

  • @joao_miguelplays8463
    @joao_miguelplays8463 20 часов назад

    *pov of update 26 in blox fruits : THAT THUMBNAIL IS CONTROL REWORK 🤩

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

    This looks like the slap battles bind maze ghost

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

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

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

    Meanwhile minitoon making piggy pathfinding in 5 days

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

    nothing better than simplepath❗❗🗣️🗣️🗣️

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

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

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

      Yes in the config there is detection range

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

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

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

    It’s because most of them are dumb ❤️‍🔥😭 just run a ray to see if the players are in sight and if they are, you move the npc, if not you pathfind

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

      @@xyent9497 that’s the general gist of it!

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

    I thought it was a deepwoken Pathfinder video 💀

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

    That kinda looks like the golden ratio

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

    but like you pnly need around 30 limes of code to make it,

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

      @@krafty29 forbidden has many features. So yes basic pathfinding is easy, but the features that come with forbidden will soon number close to 3500 lines of code

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

    The year short is 2023 bro

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

      @@humimicmedical1179 the code is maintained

  • @entangledatoms7153
    @entangledatoms7153 2 дня назад

    “IT TOOK ME SO LOMG TO DO THIS YOU CAN’T JUST MAKE IT EASIER-“
    🗿
    “One line.”

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

    Easier path finding code "print: "you're being followed"

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

    PATHFIND LIKE PATHFINDERS IN DEEPWOKEN?!

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

    I got jumpscared by the dummy💀

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

    One line of code? What is this sorcery!?

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

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

    how do i change the character

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

      change the variable for the character in the api call

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

    GUYS ITS NOT ONE LINE

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

      @@Melih_ALEMDAR2674 it’s one line ?
      in my example I did good code practice, where it was stored as a variable (the require portion), so it can be one line.

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

      @@CritDEV Sorry for misunderstanding, this is a joke here, i've meant that there are other long scripts and modules in the model. Other than that the script is actually impressive and even im planning to actually use it myself.

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

    Widawwy

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

    İm on one who read it like "how pathetic"?

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

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

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

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

    Bruh mine does not path find

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

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

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

      @@messengercreator for who? Never seen anyone use it

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

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

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

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

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

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

    Dude i can't even code functions 😭

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

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

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

    i still dont know how to use this tho

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

    1 Year, Lol!

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

      @@gamingwithlilabe3711 the api is maintained if you were questioning its release date

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

      @ oh, I was just saying what time I got here, lol, but thanks for telling me, lol

  • @Heaven-artist-i8z
    @Heaven-artist-i8z 3 месяца назад

    Bro made a tsb leak

  • @riadzxer9555
    @riadzxer9555 24 дня назад

    IM EMBARRASSED BRO, I THOUGHT IT WAS GOING TO BE SOME DEEPWOKEN REFERENCE IM SO SORRY!

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

    I got so mad I got one from toolbox

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

    it takes me too long not two weeks

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

    suiryu new move

  • @jace-k6f
    @jace-k6f 6 месяцев назад

    whats pathfinding?

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

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

    • @jace-k6f
      @jace-k6f 6 месяцев назад

      @@CritDEV ok thx

  • @MintyCat-q4c
    @MintyCat-q4c 3 дня назад

    i did it in like few mins

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

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

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

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

    that dummy real mad💀

  • @Frostbite-q3v
    @Frostbite-q3v 6 месяцев назад

    I use raycasting

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

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

    • @Frostbite-q3v
      @Frostbite-q3v 6 месяцев назад

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

      @@Frostbite-q3v nice !

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

    Me make path finding non existent

  • @man.im.ded.
    @man.im.ded. 5 месяцев назад

    🫸🔴🔵🫷🟣

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

    #Truth

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

    Golden ratio

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

    0:00

  • @idk-qm4db
    @idk-qm4db 6 месяцев назад

    algorithm

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

    0:01

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

    Bhai kya aap

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

    Tsb a laek 💀

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

    pathfinding is easy asf lol

  • @MoHa-dv4fb
    @MoHa-dv4fb Год назад

    Algorithm

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

    🫡

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

    it ain't that hard bro

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

    .

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

    Jg8

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

    _bruh_

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

    Mujhe de skte ho?

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

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

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

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

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

    Ye channel

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

    Jg