The BEST Hunter NPC (EASY TO USE)

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

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

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

    Add a Hiding System!
    ruclips.net/video/r9-yjzkYgDM/видео.html

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

    Thank you for your service. This is going to help so many people

  • @diamond6106
    @diamond6106 2 месяца назад +4

    0:47
    When I go to AI, then to, precode, then to ChaseAi, then open that, I get ChaseAIBase and ChaseAIWithHiding. Not InNPC. Do I drag both of those folders into the Dummy?

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

      use base for this video, there are now two versions!

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

      @@CritDEV thanks!

    • @lobber2.015
      @lobber2.015 Месяц назад

      @@CritDEV It's the same thing for me.

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

      @@lobber2.015 use the ChaseAIBase

  • @officiallysmooth2221
    @officiallysmooth2221 4 дня назад

    I've noticed that that the npc often glitches after chasing the Player, when it goes back to wandering or just following a general path it stops and restarts multiple times along the path

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

      @@officiallysmooth2221 yes, this issue I believe was patched in a future update. That update will also have many feature additions

    • @officiallysmooth2221
      @officiallysmooth2221 4 дня назад

      @@CritDEV when will the update be available?

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

      @@officiallysmooth2221 join the discord for a ping. I expect by next week since I have testers that are going to able to test the whole new system.
      This system will allow for it to be used like “deepwoken”’s ai.
      Haven’t played it but according to users that is what it achieves

    • @officiallysmooth2221
      @officiallysmooth2221 4 дня назад

      @@CritDEV thank you very Much

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

    Hey, can u make a tutorial how to hide in a closet for example with these ai? Would be insane

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

      @@DreamGamingTv I think I briefly showed how to do it, even with the granny mechanic. But I will though, thank you!

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

      @@CritDEV trust, it would be insane. Your pathfinding AI with hiding usw would be go viral on youtube

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

      @@DreamGamingTv bet

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

      Tomorrow at 10:45 AM it will upload!
      Link: ruclips.net/video/r9-yjzkYgDM/видео.html

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

    bro i set the patrol speed to 100 to see if it would work and the npc, in less than a second speeds over to my location then starts running towards me at 20 speed and insta kills me. that genuinely scared me.

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

    I actually don’t know but it doesn’t wander around but when it’s in sight it attacks you

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

      Btw I subbed

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

      @@THE_GOLDENSPECTRA can you explain?
      Does it turn around randomly?
      Is it when you try to juke it?

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

      @@CritDEV well it just doesn’t wander like it did in the vid

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

      Like with those nodes

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

      @@THE_GOLDENSPECTRA what do you mean with the nodes, do they go to the nodes instead of chasing the player? Or does an error say “No nodes!” In the console

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

    How can I make the ai chase the player for 20-30 seconds before it gives up?

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

      @@prwinner1935 hook to ChaseBegan a time started variable. Then inside ContinueChasing return false when 30 seconds has elapsed

    • @prwinner1935
      @prwinner1935 13 дней назад +1

      In which script and where?

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

      @@prwinner1935 in the main ChaseAI script

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

      Is it in the stopChase function?

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

      it should just be called "ContinueChasing" and another "PlayerChaseBegan"
      Make "ContinueChasing" return false when the time has elapsed.
      In the "IsATarget" function, return false if that player is called as a target soon after.

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

    This is an absolutely insane life-saver, thanks. Is there a way to make it have different animations for different actions though? (For instance, an animation for wandering, for chasing, for attacking etc.) Because I know that in order to achieve this I'd have to modify the AI script, right?

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

      There are hooks at the top of the AI script that allow you to do that.

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

      @@CritDEV Thanks, and sorry for the trouble, I'm an absolute idiot when it comes to stuff that contains module scripts lol.

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

    Oo I’ll try this sometime! And ty!
    Is it possible to make the npcs look exactly like an exact copy of every player in the server?

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

      that would just be getting the player model somehow. then all you would have to do is place the assets inside the model and it would be good to go.

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

      @@CritDEV are you able to explain how to do that visually ? ^^’

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

      @@wxlfeclxpse8683 Join the discord if you want help. Though all you will have to do is figure out how to get the players model, then copy the Events Folder and the script into it using .Clone().Parent = PlayerModel

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

    Heya thanks for the vid! it was really helpful. Do you know how i can apply animations to the npc while its using that script?

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

      Please look for a regular animation tutorial for NPCs.
      You can hook it in with functions in the script :).

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

    Yo do I have to create the blocks (like the waypoints) If so I just place one or do I have to put a script in it

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

    i keep getting a "No path could be found. This is an issue with Roblox, not Forbidden. The NPC might also not be able to fit where the waypoint is, please see 'AgentRadius'" error, even thought i added an agent radius

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

      the error refers to an issue where if the player is hugging a wall, and the agent radius collides with the wall, a path cannot be computed.

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

    Do i need to create the nodes?
    Because it doesn't appear in the API

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

    i have the nodes and everything, made sure to put em in a folder and did all the steps correctly (up to the wandering point) but the ai wont move, attack, or do anything

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

      it also doesnt give an error message saying anything went wrong

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

      Is the AI anchored?

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

      @@CritDEVi figured out how to fix it but how do i make it animated?

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

      @@puremuskratt it must have a humanoid with a working "human:MoveTo(position)" call.

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

      @@puremuskratt You must place in an "Animate" script, please follow a tutorial for instructions on how to do that.

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

    HEYY i have a question, i wanna add walk run and idle anims but they just dont work on this- (just readed a comment saying that there is a way- but i dont really know how to add it)

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

      @@darkyrblx9160 they should work with the basic ‘Animate’ script
      Maybe try hooking to the internal functions if you need to.
      You can test this by using Roblox’s zombie model.

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

      @@CritDEV i tried i just dont find a way, and animate doesn't work for me somehow-?

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

    I cant get the wandering to work like its not working at all its just standing there

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

      please join the discord and see if errors are provided in the console.

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

    Hello friend, i have a question about the code. i want to stun for 10 seconds the npc when touch a specific part, i need to know how to do it, because in theory when touch the part, his walkspeed would be 0 but the npc keep walking, I need your help pls :c

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

      Use the built in ConfirmChase and continue chasing functions to code this in.
      When that occurs, return false.
      As for the wander, change config.Active to false throughout the duration of the stun to disable the feature.

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

      @@CritDEV I need an example of that, im very noob in programming in roblox and well, in short words I have a tool called "shovel", when the npc hit the part of the shovel, this woul be stop for 10 seconds

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

    after death and respawning, the npc seems to glitch out after reaching the first waypoint.

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

      @@OrganicMilkGang please join discord for help

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

      @@CritDEV fixed it, my script was calling for something that was deprecated

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

      @@OrganicMilkGang out of curiosity, what was that

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

      @@CritDEV :MakeJoints() is what it was called I think

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

      @@CritDEV :MakeJoints() is what it was called i believe

  • @Kaleb_Play
    @Kaleb_Play 28 дней назад

    Bruh I don't know how to make the npc

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

      Avatar -> Rig Builder -> R6 or R15

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

      @@CritDEV 👍

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

      @@CritDEV i made it and my game name is SCARY GAME

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

      @@CritDEV I'm still working on the game