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?
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
@@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
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 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
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.
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?
@@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
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
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
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)
@@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.
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
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.
@@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
Add a Hiding System!
ruclips.net/video/r9-yjzkYgDM/видео.html
Thank you for your service. This is going to help so many people
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?
use base for this video, there are now two versions!
@@CritDEV thanks!
@@CritDEV It's the same thing for me.
@@lobber2.015 use the ChaseAIBase
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
@@officiallysmooth2221 yes, this issue I believe was patched in a future update. That update will also have many feature additions
@@CritDEV when will the update be available?
@@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
@@CritDEV thank you very Much
Hey, can u make a tutorial how to hide in a closet for example with these ai? Would be insane
@@DreamGamingTv I think I briefly showed how to do it, even with the granny mechanic. But I will though, thank you!
@@CritDEV trust, it would be insane. Your pathfinding AI with hiding usw would be go viral on youtube
@@DreamGamingTv bet
Tomorrow at 10:45 AM it will upload!
Link: ruclips.net/video/r9-yjzkYgDM/видео.html
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.
I actually don’t know but it doesn’t wander around but when it’s in sight it attacks you
Btw I subbed
@@THE_GOLDENSPECTRA can you explain?
Does it turn around randomly?
Is it when you try to juke it?
@@CritDEV well it just doesn’t wander like it did in the vid
Like with those nodes
@@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
How can I make the ai chase the player for 20-30 seconds before it gives up?
@@prwinner1935 hook to ChaseBegan a time started variable. Then inside ContinueChasing return false when 30 seconds has elapsed
In which script and where?
@@prwinner1935 in the main ChaseAI script
Is it in the stopChase function?
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.
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?
There are hooks at the top of the AI script that allow you to do that.
@@CritDEV Thanks, and sorry for the trouble, I'm an absolute idiot when it comes to stuff that contains module scripts lol.
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?
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.
@@CritDEV are you able to explain how to do that visually ? ^^’
@@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
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?
Please look for a regular animation tutorial for NPCs.
You can hook it in with functions in the script :).
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
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
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.
Do i need to create the nodes?
Because it doesn't appear in the API
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
it also doesnt give an error message saying anything went wrong
Is the AI anchored?
@@CritDEVi figured out how to fix it but how do i make it animated?
@@puremuskratt it must have a humanoid with a working "human:MoveTo(position)" call.
@@puremuskratt You must place in an "Animate" script, please follow a tutorial for instructions on how to do that.
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)
@@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.
@@CritDEV i tried i just dont find a way, and animate doesn't work for me somehow-?
I cant get the wandering to work like its not working at all its just standing there
please join the discord and see if errors are provided in the console.
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
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.
@@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
after death and respawning, the npc seems to glitch out after reaching the first waypoint.
@@OrganicMilkGang please join discord for help
@@CritDEV fixed it, my script was calling for something that was deprecated
@@OrganicMilkGang out of curiosity, what was that
@@CritDEV :MakeJoints() is what it was called I think
@@CritDEV :MakeJoints() is what it was called i believe
Bruh I don't know how to make the npc
Avatar -> Rig Builder -> R6 or R15
@@CritDEV 👍
@@CritDEV i made it and my game name is SCARY GAME
@@CritDEV I'm still working on the game