Roblox puts Waypoints through walls sometimes, and I have come up with an idea to try to detect if this does happen, however, I am not that great with ray casts and math, so I need some help.
My idea is to “ray cast” around it, and walk to another waypoint that’s free, practically ignoring the waypoint in the wall.
How would I achieve this?
1 Like
I think you can detect if the waypoint is being touched, then add a boolvalue or something named “Ignore” and have it’s value set to true.
Then make sure the npc or whatever ignores the waypoints with that bool value set to true.
1 Like
I don’t think that’d work very well, I would say Raycasting is a better solution than doing a Touch.
2 Likes
Touched event is not a reliable way to detect when a waypoint is blocked. Plus, waypoints do not have a 3d body, hence, you can’t index a “Touched” event.
1 Like