#Call a function only when a condition is met
11 messages · Page 1 of 1 (latest)
somecondition = true
thefunctionToRun()
the condition is that they're outside of that folder
there are multiple npcs that spawn i tried it that way
whats the code supposed to do
when an npc spawns, (every 10 seconds), they're placed inside a folder thats called "NPCS", when a proximity promt is triggered (thats inside the npc that spawned), they're taken out of that folder
the purpose of that is so that the next npc that spawns, checks if there are children more than 1 (which means there are npcs who havent been triggered by the proximity prompt), if there arent more children than 1 inside the folder, the function WalkHumanoid() is called