Advertisement
12904

Untitled

Jul 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local currentvalue = game:GetService("ReplicatedStorage"):WaitForChild("NameOfValue")
  2. local ds1 = game:GetService("DataStoreService"):GetDataStore("String")
  3. local tag = 151503513540684
  4.  
  5. wait(3)
  6.  
  7. if ds1 then
  8.     currentvalue.Value = ds1:GetAsync(tag)
  9. elseif not ds1 then
  10.     ds1:SetAsync(currentvalue.Value, tag)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement