PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

LoadNumber

This function was once used by an ancient data persistence method to return a number value that was previously saved to the player with Player/SaveNumber with the same key. Returns 0 if the key doesn’t exist, not nil.

Parameters

Name Type Default Description

key

Returns

Return Type Summary

Code Samples


Player:LoadNumber

The below would print the value of the player’s TotalPlays.