So.. would getting data stores in a normal script that is in the player's gui work?..
✓ ANSWER ACCEPTED
Getting data stores in a script in player?
1 answer
✓ Accepted answer
Datastores are just tables. The script can be in the lighting if you wish as long as you use GetAsync you should be able to retrieve the table, no matter where the script is and as long as it's not a local script.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Actually, scripts don't work in Lighting. If they are appropriately placed, they'd be in ServerScriptService or Workspace. If FilteringEnabled is disabled, then they could work in PlayerGui or Backpack.