Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why can't my data stores be accessed?

I have this code put into a module script in the replicated storage:

local DataStoreService = game:GetService("DataStoreService")
local playerData = DataStoreService:GetDataStore("PlayerData")

Everytime the game is started up, however, it keeps having this error: "Data store can't be accessed from client." Why does it do this? API Servers are already enabled.

1 answer

✓ Accepted answer

You should be requiring it from the server and sending the information to the client,

1 comment

0

Right, thx!

This discussion is preserved as it was. New answers, comments, and votes are closed.