getthreadidentity
Gets the current thread's identity
function getthreadidentity(): numberExample
task.defer(function() setthreadidentity(2); print(getthreadidentity()) end)
setthreadidentity(3)
print(getthreadidentity())
-- Output:
-- 3
-- 2Last updated