Function of storage
storage.get
Returns the value saved under key, or nil when there is none.
storage.get(key: string) → any
Parameters
keystringReturns
anyUsed in
local best = storage.get("best." .. player.uuid) or 0Guide: Coin rushif p.data.coins > (storage.get(key) or 0) thenGuide: Coin rushlocal best = storage.get("best." .. player.uuid)Guide: Parkour, a room eachlocal best = storage.get(key)Guide: Parkour, a room eachlocal score = storage.get("taps." .. p.name) or 0Scoreboard with a buttonstorage.set(key, (storage.get(key) or 0) + 1)Scoreboard with a buttonlocal best = storage.get("best." .. player.name) or 0Storage