--[[
This script ensures that your game complies with GDPR requests. 

To remove player data when requested:
	1. Publish the place, then run it in the Roblox client (not within Studio).
	2. Once in the game, open the Developer Console by pressing F9 or typing /console into the chat.
	3. In the Log section, click the Server tab.
	4. In the console’s command line, enter the following command, where XXXXXXXX is the user’s ID provided to you by Roblox.
		- game.ServerStorage.RemovePlayerData:Fire("XXXXXXXX")
	5. Assuming a player data key was located with the Player_XXXXXXXX pattern, you'll see a console message indicating it was successfully removed from the data store:
--]]


local ServerStorage = game:GetService("ServerStorage")
local DataStoreService = game:GetService("DataStoreService")
local eventsFolder = ServerStorage:WaitForChild("Events")
local removePlayerDataEvent = eventsFolder:WaitForChild("RemovePlayerData")
 