I can't create a folder for storing BoolValue in the player?

This was just working fine yesterday, however, after the update it doesn’t create a folder within the player storing the values anymore?

Instance.new("Folder",player).Name = "PlayerStats"

1 Like

RobloxStudioBeta_HpZSand0Yl

Line 3 seems to make it break?

2 Likes

sorry i fixed it… i forgot to publish the game so i couldnt access datastore… smh it took me a good 30 minutes to realize this lmao

I wouldn’t recommend using the 2nd parameter of Instance.new due to ineffeciencies and delays, instead you should set the .Parent of the newly created Instance.
You can read more here: