πŸ’ΎData Functions

A brief summary of all available DataStore related functions.

getData(player: Player): {any}

Returns the provided Player's leaderboard data.

Example

local success, data = pcall(function()
    return Ezstatz:getData(player)
end)
if success then
    if data then
        print(data)
    end
else
    warn("something went wrong.", data)
end

saveData(player: Player)

Saves all of the current values inside of the Player's leaderstats folder into the datastore.

Example

eraseData(player: Player): {any}

Clears a Player's Datastore key if there's any data present within it.

Example

Last updated