I am making a small game that is puzzle-a-like and there’s a bot using a pathfinding algorithm to find the shortest path.
I am having problem with basic bot behavior. It’s getting bugged when it gets created(Cloned from ServerStorage and moved to Workspace)
The problem is, it just, acts pretty weird. Falls down into ground and moving at random directions.
Here’s the code that is doing the work:
I am aware that my positioning is wrong, I should use a target part, use it’s CFrame etc. But this code is temporary. How can I fix this problem first?
There’s no video of the problem or explicit details about what issue you’re having, so it’s not that easy for us to help you with this problem. That being said, someone did come to me on Discord with a similar problem so I think it’s applicable here.
Try forcing your Humanoid to use an initial idle state. When you change to this immediately, it should get rid of the state that determines when the Humanoid should wobble and act as though it’s standing still. From there, movement can take over.
Sorry for late answering
I don’t think it does, pathfinding does not interfere with bot at all, and especially not at the game start. It’s just a value returning module script.
Thanks for your answer
Sorry for late answering
Sorry for the lack of details either, I couldn’t gather video or photo at that time.
Thanks for your answer, I’ll try it, will tell ya if it works