The BEST Enemy NPC for Beginners

preview_player
Показать описание
#robloxstudio #npc #robloxdev #pathfinding #forbidden #roblox

How to create a customizable, pathfinding AI that hunts players and wanders around a map!
It also has the functionality of a wandering NPC!

Please comment with your game's name/link if you use Forbidden and good luck!

TIME STAMPS
0:00 Introduction
0:30 Importing Forbidden
0:51 Basic Settings
3:00 Wandering
4:31 Demonstration
5:45 Adjusting Code
7:10 Outro
Рекомендации по теме
Комментарии
Автор

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

nathanael
Автор

Hello! And thank you for this i really needed this! Now i just wanted to ask how can you implement that it makes Walking sounds when walking?
I also wanted to make it so that the vision turns slightly red and a chasemusic Plays when the monster is chasing a player

BringBackHowler
Автор

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

officiallysmooth
Автор

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

DreamGamingTv
Автор

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?

wxlfeclxpse
Автор

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?

diamond
Автор

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.

OrganicMilkGang
Автор

Thank you, you saved me, but one question, how do you have those points that indicate where the ai is going?

NotElGato.
Автор

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?

dev_axel
Автор

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?

Amaze-rw
Автор

the pathfinding dont work if i put randomwarding to true and where are the purple waypoints

WhiteGuyGTAG
Автор

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

The_GoldenSpectra
Автор

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
Автор

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

Chefpyro
Автор

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

helix
Автор

So I'm not sure what this is, but I've noticed that after about three minutes the AI's movements will become extremely choppy. Eventually it just stops moving entirely. I checked the debug and it's just spamming the console with errors saying "[Forbidden.AI] The AI was not successful in a movement: (Rig)" and it begins restarting wander over and over. Is this a known bug?

frightenedanimal
Автор

my ai keeps getting stuck on walls while wandering

nqcolas
Автор

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

OrganicMilkGang
Автор

Hello! the potential in this API is amazing! I just wondered something, im making a zombie game and these zombies ONLY target Players. However there are OTHER NPC's inside my game that should be targeted by the zombie, like Military, Police, Survivors ETC. Can someone please help me about customizing the script to achieve this? The script looks complicated im confused.

Marshall
Автор

It says: attempt to index nil with "FindFirstChild" what should i do? i did exactly as it says in the video, but its a custom mesh so maybe thats why. Could you help me?

Also i forgot to mention the line:
if then

updateVars(obj.Parent)
end

Bylocz