If they haven't been in the game before, this will set it to true, but something else needs to happen if they haven't, my intro GUI handled by a separate localscript. How exactly would I get this to work? I'm sort of being braindead at the moment and confused. Help, please?
local player = script.Parent.Parent.Parent.Parent
local datastoreservice = game:GetService("DataStoreService"):GetDataStore("BoE_BeenBefore")
local beenbefore
game.Players.PlayerAdded:connect(function()
if datastoreservice:GetAsync(player.userId) == false or nil then
script.Parent.beenbefore.Value = false
datastoreservice:SetAsync(player.userId,true)
elseif datastoreservice:GetAsync(player.userId) == true then
script.Parent.beenbefore.Value = true
end
end)
