I'm trying to make a GUI that only appears the first time you ever play a game. Now, you may recognize this question, as I asked it relating to Data Persistence. However, someone recommended that I use DataStore instead. So that's what I'm doing. I read up on the wiki, and I built a script based on what I read, but I'm still new to it. The script I made won't fire, and there are no errors in console (In test or in game). Here's my script:
local Read = game:GetService("DataStoreService"):GetDataStore("Read")
local check = Read:GetAsync("Read", function(Value)
if Value == nil then
game.ReplicatedStorage.Message:Clone().Parent = game.Players.LocalPlayer.PlayerGui
Read:SetAsync("Read", "yes")
end
end
The script is a normal script located inside workspace. All help is appreciated!
