talis783
(Repliz)
March 30, 2025, 8:55pm
3
Try this code I wrote a while ago, it has logic for player chase and detection but you can just remove all that and just have it pathfinding between diffident points
As a better version to my older script found here this one actually has object permanence, basically the AI is smarter, If you are behind a wall it wont magically know you’re there and it has to maintain line of sigh with you while It’s chasing you. If it looses this line of sight it will go to the last location and go from there, feel free to use it however you want credit my if you’d like
task.wait(1)
local PathfindingService = game:GetService("PathfindingService")
local AI = script.Parent
…