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