DataStore Editor

Hi, I’m trying to edit someone’s data. DataStore Editor is what I tried to use to edit the data. Which is owned by @Crazyman32. I have a game with a data store that contains someone’s time. I put in the key which is “TimeSave” and I get this:


I’m confused since I just entered my key, and it’s asking for it again.
Here is the script that holds the datastore:

ocal datastore = game:GetService("DataStoreService")
local ds1 = datastore:GetDataStore("TimeSave")

local badgeservice = game:GetService("BadgeService")
local badgeid = 2124568187
local badgeid2 = 2124568189
local badgeid3 = 2124568190
local badgeid4 = 2124568192

game.Players.PlayerAdded:Connect(function(plr)
    local m = 0
    local leaderstats = Instance.new("Folder")
    leaderstats.Parent = plr
    leaderstats.Name = "leaderstats"


    local gems = Instance.new("IntValue")
    gems.Parent = leaderstats
    gems.Name = "Time"
    
    local data
    
    local success, err = pcall(function()
        data = ds1:GetAsync(plr.UserId)
    end)
    
    if success then
        gems.Value = data
    end 
        
    repeat wait()
        m = m + 1
        if m == 2 then
            m = 0
            if plr.leaderstats.Time.Value >= 600 then 
            badgeservice:AwardBadge(plr.UserId, badgeid)
            if plr.leaderstats.Time.Value >= 1800 then 
            
                badgeservice:AwardBadge(plr.UserId, badgeid2)
                
                if plr.leaderstats.Time.Value >= 3600 then 
                    
                    badgeservice:AwardBadge(plr.UserId, badgeid3)
                    
                    if plr.leaderstats.Time.Value >= 7200 then 
                        
                        badgeservice:AwardBadge(plr.UserId, badgeid4)
                        
                    end
                end
            end
        end
        end
        wait(1)
        plr.leaderstats.Time.Value = plr.leaderstats.Time.Value + 1
    until plr == nil  
end)

Please help me out, thanks.

1 Like

You’re using the plugin to edit an OrderDatastore, just uncheck that box and try again since you’re using a regular store.

4 Likes

I unchecked the box and it still asked me for a different key.

Yes, so input your key.

Your store is named TimeSave, your key is the player’s UserID.

local ds1 = datastore:GetDataStore("TimeSave") -- TimeSave is your datastore
ds1:GetAsync(plr.UserId) -- you've used the UserId as the key
3 Likes