- What do you want to achieve?
I’m working with a custom rig that consists of only a head model containing a mesh. I want to get it moving properly using pathfinding. - What is the issue?
When the ray detects a player, the rig starts glitching and doesn’t move directly toward the player. Instead, it zigzags and constantly reorients toward one of the waypoints. It looks like something might be obstructing the ray or interfering with its path. - What solutions have you tried so far?
I’ve searched the Creator Hub and other resources but couldn’t find anything similar to this issue.
1 Like
I’ve even tried to make the mesh itself the HumanoidRootPart, it works fine when walking from waypoint to waypoint but when a character is near it the model does the same thing.

Have you tried using the RaycastParameters to exclude the character model so that the raycast cannot hit it?
Example:
local RayParams = RaycastParams.new()
RayParams.FilterType = Enum.RaycastFilterType.Exclude
RayParams.FilterDescendantsInstances = { character }
local raycastResult = workspace:Raycast(rayOrigin, rayDirection, RayParams)
Consult the Documentation for RaycastParams for more information on how to properly use them



