How to Delete Data with UserID from Datastore?

I haven’t seen any sources that say anything about the punishment you get for not removing the player form your datastore.

The only source I’ve seen talking about some sort of punishment for not doing so doesn’t really have much proof. It claimed that Roblox would try to pressure you into doing so and possibly pursue legal action.

2 Likes

Lol, how would they know if the datastore actually gets deleted or not.

3 Likes

Yeah I got the Datastore editor plugin, but idk how to use it

2 Likes

Don’t know. I figured if they’re able to find out that a player’s data is in your games’ datastore(s) that they’d also be able to find out if it is wiped or not.

I’m not y’know familiar with hardware and stuff but since they do have control of the physical data centers; can’t they change and remove data like that?

2 Likes

Uhh, can you send a screenshot of it? I haven’t really used that one before.

Can I also see the code you use to save the data with?

2 Likes

How do they know if the data key is actually for this player and not some kind of id code for some system or something.

3 Likes

I don’t know. That’s really all I have to say this time.

2 Likes

Lol, ok. Have a good day!!!

3 Likes

Save Data function (when player leaves it uses this function):

function saveData(player)

	local charactersList = {}

	for i, character in pairs(player.OwnedCharacters:GetChildren()) do
		table.insert(charactersList, character.Name)
	end

	ds:SetAsync(player.UserId .. "Cash", player.leaderstats.Cash.Value)
	ds:SetAsync(player.UserId .. "Level", player.leaderstats.Level.Value)
	ds:SetAsync(player.UserId .. "EXP", player.Stats.EXP.Value)
	ds:SetAsync(player.UserId .. "Characters", charactersList)
	ds:SetAsync(player.UserId .. "LastCharacter", player.EquippedCharacter.Value)

	game.ReplicatedStorage.OriginalCharacters[player.Name]:Destroy()
end

1 Like

You’ll have to delete the datastore for Cash, Level, EXP, Characters and LastCharacter too.

Fill in the information.

PlaceId: The place id of your game.
DataStoreName: The name of the datastore (local ds = dss:GetDataStore("DataStore1") so "DataStore1")
Key: UserIdCash

Heres an example
PlaceId: 12004021330
DataStoreName: DataStore1 (Change this to the name of the datastore because I dont know what you’ve named it).
Key: 4760160964Cash

Once you fill in this information send a screenshot so I can see what the UI looks like and provide you with more help if needed.

Can you also show me the line with the ds variable?

2 Likes