#[FIXED] Need help whit Path Finding bug

1 messages · Page 1 of 1 (latest)

raven agate
#

I'm making a horror game AI similar to the mimic one.
But something bugs the movement or the animation
Also, this is only in-game, in studio it doesnt happen and when it's chasing the player, it doesn't happen too.

fossil nexus
#

I'm not seeing a problem

raven agate
raven agate
#

its like stops running for one sec when reaching a waypoint

#

how my AI has an idle animation the animation bugs and runs and stops all the time

fossil nexus
raven agate
#

Stills whitout working

#

but wait

#

u mean all the parts from the npc or only the root part?

#

oh nvm

#

it doesnt work on both ways

fossil nexus
#

Are you calculating the path when they reach the end

#

You need to calculate the path before you get to the end

raven agate
#

like

#

calculate the new path before reaching the last waypoint?

raven agate
#

stills whitout working 😔

#

I'm gonna look in the devforum to see if I find a solution

fossil nexus
#

If the network owner is calculating the path and moving the Npc and the path is calculated before getting to the end I don't see how it would be delayed

#

Only other option is your code Is broken

raven agate
#

I also tried the chase module because the chase part works fine but it didn't work

fossil nexus
#

I personally still believe it's the problems I listed above

raven agate
fossil nexus
#

Calculating the path before getting to the end is the highest contender feels like to me

#

But also if the server is using the moveended event on the humanoid and the humanoid is owned by the client it could also cause a delay

raven agate
#

if i remember good about ur part slicer tutorial

#

the methods whit the word async

#

have a delay

#

oooh

#

im dumb

fossil nexus
#

Yes calculating the path is async so it will have a delay

#

And because your computer is more powerful then Roblox severs it's most likely calculating the path quicker so you only notice it in a real server

raven agate
#

FINALLY ITS FIXED

#

i found a dev forum post about the same problem and it got fixed whit the other function of the humanoid that makes it move

#

but anyways

#

ty for ur help!