Closed SuperRuper1209 closed 1 year ago
method you pass a callback function. example of usage:
function callback(regData)
end local tele = GetPartFromPort(1, "Telescope") tele:WhenRegionLoads(callback)
Tele:Configre({....}) Tele:Configre({....})
-- callback is called twice
proof
ok
https://github.com/iimurpyh/pilot-lua/wiki/Telescope#void-telescopewhenregionloadscallback
method you pass a callback function. example of usage:
function callback(regData)
end local tele = GetPartFromPort(1, "Telescope") tele:WhenRegionLoads(callback)
Tele:Configre({....}) Tele:Configre({....})
-- callback is called twice