Script gives error when making variable

Cause its not in it cause you told that I had to remove it.

I told you to remove your player variable, nothing else.
You need to create the leaderstats before accessing it, otherwise it’ll yield forever or until it exists.

I tried that but that doesnt works either.

Now it works, but when the player doesnt has enough cash it still is getting cloned any idea how to solve that?