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

How do I get this OrderedDataStore to work?

Asked by 10 years ago

So i've been testing and testing but for some reason I get this error

local PurchaseHistory = game:GetService("DataStoreService"):GetOrderedDataStore("DevProducts")
PurchaseHistory:SetAsync(player.Name, "Premium Session Pass")

"player" value "IS" Defined It "IS" in a "Script" not "LocalScript"

In the output for the Dev-Console in online-game it says "Value is not allowed" and it's referring to "(player.Name, "Premium Session Pass")" Premium Session Pass string I'm truly unsure what to do about this

1 answer

Log in to vote
-2
Answered by 10 years ago
wait(.50)
print("GO ON WIKI BEFORE YOU GO ON THIS!")
Ad

Answer this question