Need help with a datastore issue

Hello everyone! I am trying to script a datastore that holds the player’s data held inside of ServerStorage, and the folder that holds the data is named after the player’s name. I have the folder getting made under ServerStorage and the folder that is named after the player, however while getting the player’s data, I can’t seem to figure out how to reference the player’s data folder. Currently how I have it is “ServerStorage.Player.Name”, though I only get an error that says “Player is not a valid member of ServerStorage “ServerStorage””

ServerStorage.Player.Name means
in serverstorage is a folder called Player
in the folder called Player is a folder called Name
you want to search for a folder with the player name
for that we use []
serverstorage[Player.Name]

so in serverstorage is a map with the name player.name

1 Like

Wow, I was overlooking that for a good 20 minutes and completely forgot about being able to use []. It worked, thank you lol.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.