Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why can't my data stores be accessed?

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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

0
Right, thx! ServerLover38 21 — 4y
Ad

Answer this question