Setting script:
while wait() do local DataStore = game:GetService("DataStoreService"):GetDataStore(script.Parent.Name.."_"..script.Parent.Parent.Parent.Parent.Parent.Parent.Name) wait(2) DataStore:SetAsync("1", script.Parent.TextLabel.Value.Value) print('datastore set') end
Getting script:
game.Players.PlayerAdded:connect(function(player) local DataStore = game:GetService("DataStoreService"):GetDataStore(script.Parent.Name.."_"..player.Name) local yes = DataStore:GetAsync("1") script.Parent.TextLabel.Value.Value = yes end)
Closed as Not Constructive by Sublimus and Redbullusa
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?