I’m trying to make a task system. One of the tasks is “feed the cat.”
I have 9 spawn points, and the system should randomly pick 6 of them to spawn items.
But when I test it ingame, nothing happens.
I added some debug prints, and they show that the code is running, but nothing shows up in the game.
Anyone know what might be wrong?
#Task system bug
1 messages · Page 1 of 1 (latest)
Try printing the model's position too (if it's a model, use the primary part's position instead)
is it a model or a part
its model.
I tried now its return like this
ServerScriptService.CatFoodTaskManager:4: attempt to index nil with 'PrimaryPart' - Server - CatFoodTaskManager:4
you have to set the primary part first
oh wait
your model is nil