iimurpyh / pilot-lua

Documentation for the programming language of ROBLOX game Waste of Space
23 stars 0 forks source link

Telescope:WhenRegionLoads(callback) #11

Closed SuperRuper1209 closed 1 year ago

SuperRuper1209 commented 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

SuperRuper1209 commented 1 year ago

image proof

hail12pink commented 1 year ago

ok

hail12pink commented 1 year ago

https://github.com/iimurpyh/pilot-lua/wiki/Telescope#void-telescopewhenregionloadscallback