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

Why does it not work when I try to test my place's data store?

Asked by 9 years ago

I've been trying to test my place's data persistence and get it up and running, but Studio continuously shoots me down with the line, "Place has to be opened with Edit button to access DataStores."

I have been opening the place with the Edit button. I have turned on the API access option. I am testing with a server test. I have confirmed that my place id is set. I have closed and reopened and it did not work.

Is this an issue with Studio that I just can't fix?

This is the line in question: local saveStore = game:GetService("DataStoreService"):GetDataStore("Save_Store")

It is in a local script inside a GUI.

1 answer

Log in to vote
0
Answered by
DataStore 530 Moderation Voter
9 years ago

You cannot use DataStores with LocalScripts.

When you've rectified that issue, and if you're still having troubles with testing DataStores in edit mode, make sure that you're logged in and that the DataModel's PlaceId property isn't 0.

0
Ok, thx! lockrick 0 — 9y
Ad

Answer this question