Why is my Ai walks in editor but not when the game is Packaged?

I want to make a single player battle royale game so there are a lot of enemy AI. the AI can walk and fire bullets in the editor and mobile preview. but when packaged, they can just fire bullets but do not move. thank you so much for your help.