Skip to content

Version

Overview

This module contains methods to view the server and experience-wide version of the place.

Properties

LocalVersion

Skeptic.Version.LocalVersion: {any}

{read-only}

The currently stored server and experience versions.

Info

This shouldn't be directly accessed. Use the dedicated methods instead please.

Methods

GetServerVersion

Skeptic.Version:GetServerVersion() -> string

Returns the version of the experience in this server. This will either be the same as or older than the experience version.

GetExperienceVersion

Skeptic.Version:GetExperienceVersion() -> string

Returns the experience-wide version. This will only be up-to-date when the server starts up. Use :UpdateValuesAsync to get the latest version data from the DataStore.

UpdateValuesAsync

Skeptic.Version:UpdateValuesAsync(
    timeOut: number?
) -> boolean

Updates the experience version value from the DataStore. Calling this will take about 1-2 seconds, so wrap it in task.spawn if needed.

GetServerValuesAge

Skeptic.Version:GetServerValuesAge() -> number

Returns the time, in seconds, since :UpdateValuesAsync was last called.