Why am I getting these errors?

Working on update for my game with a system that connect to the datastore system I have and I keep getting these and it breaks everything
Errors
image
image
Errors and code (More if you need to have it shown)

3 Likes

Infinite yield possible on waitforchild means the function has been waiting for a specific instance for too long and might be stuck in a situation where the current thread may never continue execution.

Check for any extra scripts within your game that add a new “leaderstats” folder to the player object. This can cause your script to mistakenly check the wrong folder.

Also check if you are deleting the “wallet” intvalue inside a script.

1 Like

Where you are doing your “:WaitForChild(),” do “:WaitForChild(“whaturwaitingfor”, 2)

1 Like

I have a script that adds a leader stats folder for collection data of eggs it makes a new stat eggs

could you show us the EggHandler script?

I will I got irl stuff to deal with rn

image

image

image

so? got any idea?? to fix it??