04-network-client.lua

-- This file shows basic usage of a Client using a VirtualNumberValue.
-- Note: see also the 04-network-server.lua example

local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Modules"))

local VirtualNumberValue = require("VirtualValue:Types.Number")

local vnv = VirtualNumberValue.new()
local cli = vnv:client(workspace:WaitForChild("MyVirtualValue"))

local function onValue(value)
	print("Value: " .. value)
end

cli.listen(onValue)
generated by LDoc 1.4.6 Last updated 2021-01-21 07:22:00