The BEST Enemy NPC for Beginners

  Рет қаралды 2,190

Crit

Crit

Күн бұрын

Пікірлер: 80
@CritDEV
@CritDEV 3 ай бұрын
Add a Hiding System! kzbin.info/www/bejne/qGqQqp2woL6aeq8
@diamond6106
@diamond6106 3 ай бұрын
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 3 ай бұрын
use base for this video, there are now two versions!
@diamond6106
@diamond6106 3 ай бұрын
@@CritDEV thanks!
@lobber2.015
@lobber2.015 2 ай бұрын
@@CritDEV It's the same thing for me.
@CritDEV
@CritDEV 2 ай бұрын
@@lobber2.015 use the ChaseAIBase
@nathanael5606
@nathanael5606 3 ай бұрын
Thank you for your service. This is going to help so many people
@OrganicMilkGang
@OrganicMilkGang 3 ай бұрын
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.
@officiallysmooth2221
@officiallysmooth2221 23 күн бұрын
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 23 күн бұрын
@@officiallysmooth2221 yes, this issue I believe was patched in a future update. That update will also have many feature additions
@officiallysmooth2221
@officiallysmooth2221 23 күн бұрын
@@CritDEV when will the update be available?
@CritDEV
@CritDEV 23 күн бұрын
@@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 23 күн бұрын
@@CritDEV thank you very Much
@THE_GOLDENSPECTRA
@THE_GOLDENSPECTRA 3 ай бұрын
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 ай бұрын
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
@DreamGamingTv
@DreamGamingTv 3 ай бұрын
Hey, can u make a tutorial how to hide in a closet for example with these ai? Would be insane
@CritDEV
@CritDEV 3 ай бұрын
@@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 ай бұрын
@@DreamGamingTv bet
@CritDEV
@CritDEV 3 ай бұрын
Tomorrow at 10:45 AM it will upload! Link: kzbin.info/www/bejne/qGqQqp2woL6aeq8
@nqcolas
@nqcolas 9 күн бұрын
my ai keeps getting stuck on walls while wandering
@CritDEV
@CritDEV 9 күн бұрын
@@nqcolas please join the discord and make a ticket with an example rbxl file
@prwinner1935
@prwinner1935 Ай бұрын
How can I make the ai chase the player for 20-30 seconds before it gives up?
@CritDEV
@CritDEV Ай бұрын
@@prwinner1935 hook to ChaseBegan a time started variable. Then inside ContinueChasing return false when 30 seconds has elapsed
@prwinner1935
@prwinner1935 Ай бұрын
In which script and where?
@CritDEV
@CritDEV Ай бұрын
@@prwinner1935 in the main ChaseAI script
@prwinner1935
@prwinner1935 Ай бұрын
Is it in the stopChase function?
@CritDEV
@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.
@puremuskratt
@puremuskratt 3 ай бұрын
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.
@Chefpyro6
@Chefpyro6 2 ай бұрын
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 2 ай бұрын
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 Ай бұрын
Do i need to create the nodes? Because it doesn't appear in the API
@helix331
@helix331 3 ай бұрын
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
@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.
@Amaze-r2w
@Amaze-r2w 3 ай бұрын
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 3 ай бұрын
Please look for a regular animation tutorial for NPCs. You can hook it in with functions in the script :).
@darkyrblx9160
@darkyrblx9160 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
@@CritDEV i tried i just dont find a way, and animate doesn't work for me somehow-?
@OrganicMilkGang
@OrganicMilkGang 3 ай бұрын
after death and respawning, the npc seems to glitch out after reaching the first waypoint.
@CritDEV
@CritDEV 3 ай бұрын
@@OrganicMilkGang please join discord for help
@OrganicMilkGang
@OrganicMilkGang 3 ай бұрын
@@CritDEV fixed it, my script was calling for something that was deprecated
@CritDEV
@CritDEV 3 ай бұрын
@@OrganicMilkGang out of curiosity, what was that
@OrganicMilkGang
@OrganicMilkGang 3 ай бұрын
@@CritDEV :MakeJoints() is what it was called I think
@OrganicMilkGang
@OrganicMilkGang 3 ай бұрын
@@CritDEV :MakeJoints() is what it was called i believe
@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.
@tupatacoja915
@tupatacoja915 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@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
@wxlfeclxpse
@wxlfeclxpse 3 ай бұрын
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 3 ай бұрын
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.
@wxlfeclxpse
@wxlfeclxpse 3 ай бұрын
@@CritDEV are you able to explain how to do that visually ? ^^’
@CritDEV
@CritDEV 3 ай бұрын
@@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
@Kaleb_Play Ай бұрын
Bruh I don't know how to make the npc
@CritDEV
@CritDEV Ай бұрын
Avatar -> Rig Builder -> R6 or R15
@Kaleb_Play
@Kaleb_Play Ай бұрын
@@CritDEV 👍
@Kaleb_Play
@Kaleb_Play Ай бұрын
@@CritDEV i made it and my game name is SCARY GAME
@Kaleb_Play
@Kaleb_Play Ай бұрын
@@CritDEV I'm still working on the game
Why Is It Bad That My Game Looks Good?
16:40
Deynum Studio
Рет қаралды 283 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 48 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,7 МЛН
I Locked this AI Dog in an Escape Chamber for 1000 Years
21:29
Exploring Abandoned Games From My Childhood
16:34
globert
Рет қаралды 4,5 МЛН
Advanced HIDING System for NPC Hunters in Roblox Studio
7:27
Can You Beat Road 96 WITHOUT Hitchhiking?
13:46
Juddsun
Рет қаралды 879 М.
Using the New Ban API | Roblox Scripting Tutorial
9:48
CodingCapybara
Рет қаралды 25 М.
Roblox Studio - Custom Player Skinned Mesh Character
13:32
The Alcatraz Syndrome
Рет қаралды 25 М.
I recreated KARLSON, (to bring back Dani)
8:21
AboveTuna
Рет қаралды 678 М.
Solo defeat chain | CHAIN
7:26
JI dF
Рет қаралды 195 М.
HackingUnity | Useless Game Dev
10:59
Useless Game Dev
Рет қаралды 13 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 48 МЛН