SyncedPoller¶
Calls functions on an interval along os.time (for cross-server simultaneous calls)
local Resources = require(game:GetService("ReplicatedStorage"):WaitForChild("Resources")) local SyncedPoller = Resources:LoadLibrary("SyncedPoller") -- SyncedPoller.new(number Interval, function Func) SyncedPoller.new(10, print)
Calls a function every Interval seconds, whenever (os.time() % Interval == 0). Functions are called with the current os.time() (with tick() precision).