Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Pathfinding Service not working as intended when the terrain is "water"?

Asked by 6 years ago

Hi guys, I've successfully made an NPC follow me via Pathfinding Service. It's working well and all until i went into the water. Before I continue, I should say that the NPC was made from scratch by myself, so it might have important parts missing. My Model is dung shaped (consist of 3 square parts: The base, the torso, and the tip)

--Here's How it looked like--

--      []  <== Tip 
--    [[[]]]    <== Torso
-- [[[[[[]]]]]] <== Base

As you can see, it lacked many things as compared to a humanoid model but this wasn't the reason why it isn't moving into the water right? I've successfully animated it's walking action so it's probably not connection problem.

Here are the list of items/objects the NPC model has: 1) Humanoid 2) Base 3) HumanoidRootPart (An invisible Part, Has a motor6D linking the Torso) 4) Tip 5) Torso (has 2 motor6D linking the Base and Tip) 6) AIScript

Apparently the the GetWaypoints() returns an empty array a.k.a no viable path was found. Is there a code to make it ignore the water or deem the water terrain as a normal terrain? Thanks in advance

Answer this question