run_on_thread
Runs code on a specific actor thread.
function run_on_thread(actor_threadactor_threadthreadThe actor thread to execute code on.: thread, scriptscriptstringThe Luau source code to execute.: string, channel_datachannel_dataany?Data passed as ... to the script. Cannot be tables or functions.?: any): ()Usage
Run on first thread
run_on_thread(getactorthreads()[1], "print('Hello World!')")