Class
ConfigSnapshot
A snapshot of configuration values at a given version. Can be player-specific.
About ConfigSnapshot
An object with the configuration values at a specific version. A snapshot can
be targeted to a single player to apply experimentation values. This is
returned by ConfigService.GetConfigAsync and
ConfigService.GetConfigForPlayerAsync.
For more information, see Experience configs.
Properties 2
Error
: ConfigSnapshotErrorStateReadOnlyNotReplicatedPopulated if snapshot was in an error state.Outdated
: booleanReadOnlyNotReplicatedIf true, indicates the snapshot is outdated and can be refreshed to newer values.
Methods 3
GetValue
(key: string) → VariantReturns the value for the given key.Returns the value for the provided key in the snapshot.
GetValueChangedSignal
(key: string) → RBXScriptSignalReturns a signal that fires when the value for the given key changes due to a refresh.Returns a signal that fires when the value for the provided key changes after calling
ConfigSnapshot.Refresh.Refresh
() → ()Refreshes the snapshot to the latest configuration values.Refreshes the snapshot to the latest configuration values from the service. If not called, the snapshot will continue to reflect the values at the time it was created or last refreshed.
Events 1
UpdateAvailable
ConfigSnapshot.UpdateAvailable:Connect(function())Fires when a newer version of the configuration is available.Fires when a newer version of the configuration is available than the current snapshot. You can perform validation and/or call
ConfigSnapshot.Refreshto update to the latest values.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.