I have written two scripts for a data store, but what if I want to edit other people's data, how do I do that?
script 1
local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("CashSaveSystem")
game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "leaderstats"
local Cash = Instance.new("IntValue",leader)
Cash.Name = "LifeFormFound"
Cash.Value = ds:GetAsync(player.UserId) or 0
ds:SetAsync(player.UserId, Cash.Value)
Cash.Changed:connect(function()
ds:SetAsync(player.UserId, Cash.Value)
end)
end)
game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.leaderstats.Cash.Value)
end)
script 2
local DataStore = game:GetService("DataStoreService")
local ds2 = DataStore:GetDataStore("PointsSaveSystem")
game.Players.PlayerAdded:connect(function(player)
local leader = player.leaderstats
local Points = Instance.new("IntValue",leader)
Points.Name = "Rebirth"
Points.Value = ds2:GetAsync(player.UserId) or 0
ds2:SetAsync(player.UserId, Points.Value)
Points.Changed:connect(function()
ds2:SetAsync(player.UserId, Points.Value)
end)
end)
game.Players.PlayerRemoving:connect(function(player)
ds2:SetAsync(player.UserId, player.leaderstats.Rebirth.Value)
end)
can anyone help?

5 comments
Try this plugin, I haven't used it but I've heard it's nice. https://www.roblox.com/library/701506235/DataStore-Editor
I have this plugin but I don't know how to use it! soooo
it has a tutorial in it
well in the description
You should implement a custom command then you could just run the logic with a command in the console like 'editdata playerUserName key new value