So I have a server script that is in StarterCharacterScript that's about Pathfinding. I have another script that handles the game and how it runs. After some time, the GameManager script is supposed to loop through the players in game.Players
and get their character and disable the Pathfinding script which most of the time, it doesn't do and sometimes one player has it enabled by the GameManager script.
GameManager (shortened because the other parts were irrelevant):
for i,v in pairs(game.Players:GetPlayers()) do v.Character.Pathfind.Disabled = false end
Seemed to fix it by adding a while wait() do
loop around the for i,v in pairs(game.Players:GetPlayers()) do
.