How to make a Monster Pathfinding AI - Roblox Studio 2022

preview_player
Показать описание

My discord: Telemacos#8418

––––––––––––––––––––––––––––––
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Music promoted by Audio Library

• Chill – sakura Hz (No Copyright Music)
––––––––––––––––––––––––––––––

0:00 Coding
23:20 Testing
Рекомендации по теме
Комментарии
Автор

This has taught me a lot, and it's so helpful you actually talked through the script, not just telling us to paste it from the description (and thank you for still putting it in description, I got to paste it in and learn from where I didn't understand, saving time.). Thank you!

sakuraangel
Автор

If your having broblems with (BlackList) in the script then change BlackList to Exclude.

TheAmazingRobloxDev
Автор

After the NPC kills a Player, it just sits there and doesn't move back to the Waypoints, is there a way to fix this?

Shadow_God
Автор

Thanks for this video, you r amazing ❤️

Nikoverso
Автор

I did this instead of the raycast and it works

local touchConnection
touchConnection =
for _, guardChild in pairs(guard:GetChildren()) do
if partHit == guardChild and guardChild:IsA("MeshPart") and canTouch and targetReached == false then
= false

= true
hit by Guard")
= 0

end
end
end)

Tettzz
Автор

Teletacos, if I could give you a million dollars, I would, because you just saved me so much frustration with the pathfinding lag glitch. I had no idea SetNetworkOwner was a thing. Thank you so much!

SlothOfTheSea
Автор

i really like your voice and script skills, man u deserve more!

Bloxmane
Автор

This Video actually helped me so much, i can work on my horror game in actual horror so that, the monster can actually go past you when your in a closet. ("Creepy: Rebirth" is what it's called the third version of my previous two one from 2020 and one "Creepy: Reborn" and for this new installment it's advanced now, you can probably do things that isn't usually in horror games like peeking left and right or just the lore in General. Probably)

portamaster
Автор

it works but the monster attack but i dindt died why ?

A.KYT
Автор

Thank you very much, I was struggling with this for a month. This film helped me a lot ... Greetings from Poland.

Werteux
Автор

I am making a child like horror game this will be amazing! TY!

Gaazzee
Автор

Its good, but when it goes to certain points, it stops after going to them. It only goes to 2 waypoints and none of the others. after doing this for a few times it stops and doesnt do anything but play the animation

hjl_
Автор

Bro tysm, u rlly taught me rlly much in this vid

Marcusthedawg
Автор

W man I WAS LOOKING FOR THIS EVERYWHERE! I was making a game. And i had lots of problems but you helped me fixed all of them THANKS! W New subscriber

StupidMiners
Автор

the fact that the monster will get stuck on stuff like crates and break

sawYT
Автор

Hey for some reason my NPC is not moving do you know why?

s_c_r_e_w_b_a_l_l
Автор

theres a problem, when he goes far or chases the player sometimes he will randomly stop moving or chasing and he wont even go back to the waypoints

sawYT
Автор

Worked well but it gave me a "Indexed nil with humanoid root part error"

adgurkan
Автор

Can you teach how to make a player be able to create the waypoints for the AI? Thanks for the tutorial.

patrickaguilar
Автор

This is really cool but idk why it doesnt work. Maybei missed a bit, but i cant fix it. The code just doesnt work at all, the NPC just sits there. Sad :(

MisterWolfOfficial