Get name from UserID? GDPR

Helloo, we received a right-of-erasure-request for the following User ID(s): “some user id”

And I need the name of the player to delete his data. Im using DataStore2, Kampfkarren(the creator of ds2), posted a code to this problem, but I need the name of that player, which account is already deleted. What can I do? I hope this post also help some people

You could try using game.Players:GetNameFromUserIdAsync()

1 Like

Looking around for a hacky method:
https://api.roblox.com/docs

Go to this API page, Users domain and look up the user through its ID there.