This isn’t the problem, since I have already tried to loop them differently, and that didn’t change the problem. It is only happening to this rig; none of the others are doing this.
After adding the print statement, it is showing that they are attempting to move to each waypoint, even though they haven’t even gotten to the second one, since they are wildly running off the path.
Gotcha. So :MoveToFinished
is firing? Could you print the positions of the waypoints too?
The print message for this is giving me this error: ServerScriptService.Main.Mob:36: Position is not a valid member of Folder “Workspace.Waypoints”
print(waypoint.Position)
uhhh huh. print the positions of the waypoints not the folder.
I also did print(waypoints.Position), but that gave me an error as well.
It may be the waypoints, but I’m not so sure, since the rest of the rigs are moving along the waypoints just fine.
After closer inspection, I realized that that the rig is still sinking into the ground, but only to the tip of the sword, where is stops. So I tried removing the accessories, and the guy sinks into the ground up to his lower torso. I have no idea why he is doing this.
Double check the hipheight parameter within the humanoid.
the waypoints you’re referencing is a folder. Print the positions of the waypoints inside
Are you copy and pasting the same script in each mob or do you have a single script that leeches off modulescripts?
I have a single script that leeches off a module script to control the mob movement.
The HipHeight
of the Humanoid
is 0, but if I raise it, it causes this to happen when collisions are set to true:
and this when collisions are set to false:
Either way, he is still sunk into the ground, but at least with collisions set to false, he is moving.
collisions of what set to false? (also is your weird pathfinding issue fixed?)
The arms, legs, etc of the rig.
I think that this may be happening due to the Humanoid’s speed, since it is set so low. I am going to try to fix this, and will let you know I can fix this issue.
you can still set the collisions to false. hipheight is separate to that iirc
They are already set to false. The only problem now is that he is sunk into the ground to his LowerTorso
.
I already had that off, it didn’t fix it.
are you sure it’s not the hipheight
I tried raising the HipHeight
some more, and it did fix the problem! I’m guessing the reason the HipHeight
was causing issues was because of the size of the NPC. Now the only problem I am having is that it is moving to the third waypoint (the starting waypoint is #1), before he gets to the second one.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.