GKSHOP

State Bags

Phone state exposed on the player entity — readable from any script without an export call.

The phone writes these to the player's state bag and replicates them, so any script can read them without calling an export:

-- Server
local charging = Player(source).state.phoneIsCharging

-- Client, your own phone
local battery = LocalPlayer.state.phoneBattery

-- Client, another player
local open = Player(serverId).state.phoneOpen
BagDescription
phoneNumberThe phone number
phoneOpenPhone on or off
phoneIsChargingCheck if the phone is charging
phoneBatteryPhone charge percentage
phoneSignalWhether the phone signal is broken
phoneIsChargingStationIs the phone at the charging station?