Skip to main content

WipeData

This function completely resets all of the users data returning it back to the original schema (as if he was a user user).

Parameters:

NameTypeDescription
playerplayerThe target player for the data wipe

Returns:

NameTypeDescription
void

Example:

local ServerScriptService = game:GetService("ServerScriptService")
local ProStore3 = require(ServerScriptService.ProStore3)

ProStore3.PlayerJoined:Connect(function(player : Player)
ProStore3.WipeData(player)
print(ProStore3.GetTable(player)) -- will print the same as in the schema.lua
end)