Owl.CreateProperty(initialValue: any, opts?: { inbound: Middleware, outbound: Middleware }): table

Server Only

Declares an automated, context-replicated data wrapper mapping within client accessibility schemas, keeping states synchronized effortlessly across servers and clients.

Parameters

initialValue*
any
The starting runtime value state variant tracked by this wrapper.
opts
table
Custom intercept configuration options.

Returns

tableReplicated value instance descriptor meta-table object.
local WeatherService = Owl.CreateService({
    Name = "WeatherService",
    Client = {
        CurrentSeason = Owl.CreateProperty("Winter")
    }
})