DataComplexity (Property)

From Legacy Roblox Wiki
Revision as of 21:45, 5 June 2011 by >Sncplay42 (clarification)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
DataComplexity
Property Integer dataComplexity
Description The amount of data currently stored in the Player's cache on a place.
Member of Player

Notes

  • Booleans and numbers cost 1 data complexity unit.
  • Strings cost their length divided by 100 in data complexity units.
  • Instances cost their DataCost in data complexity units.
  • Saving the default value (0 for numbers, false for booleans, "" for strings and nil for Instances) removes the key from the DataComplexity count.
  • If, when using the SaveBoolean, SaveString, SaveNumber or SaveInstance functions, the DataComplexity for the player goes over the limit (currently 45000 units, defined by DataComplexityLimit), the function throws an error, the value is not saved, and any previous value of the key that was being saved to is deleted.