setthreadidentity
Sets the current thread's security identity. Level 2 behaves like a normal game script, level 8 grants the most access.
Signature
setthreadidentity(identity: number): ()Parameters
identitynumberThe identity to assume, typically 2, 3, 6, 7 or 8.
Returns
Nothing.
Example
local before = getthreadidentity()
setthreadidentity(2) -- behave like a normal game script
print(getthreadidentity()) --> 2
setthreadidentity(before)