So i was making a piggy style game, and when i was making the path finding of my character, it gaved me this error: Workspace.Blanky.AI:99: invalid argument #2 to 'random' (interval is empty)
i tried the script on a new save and it worked. Also in the map that im using already has the lobby with it's gui, but i can't find any difference between the script on the baseplate and the script in the game, do you know how can i fix it?

2 comments
Are you coding it yourself? This seems like a pretty easy error to fix if you were.
I didn't come it myself, it was from a tutorial but I'm learning from them, the hard part is to understand what's wrong with the code.