Run it
Copy the script and paste it into your executor.
local LogService = game:GetService("LogService")
local threadIdentityCheck = set_thread_identity or setthreadidentity
identity1, identity2
tests = {}
totalTests =
failedTests =
(testName, status, reason)
status ==
( .. testName)
status ==
( .. testName .. .. reason)
failedTests +=
status ==
( .. testName)
tests[testName] = status
conn = LogService.MessageOut:((message)
message:()
identity1
identity1 = (message:())
identity2
identity2 = (message:())
conn:()
)
()
.() identity1
identity1 >
(, , )
(, , )
iscclosure (printidentity)
(, , )
(, , )
source = debug.(printidentity, )
source ~=
(, , )
(, , )
setfenv
success, err = (()
(printidentity, {})
)
success
(, , )
(, , )
(, , )
threadIdentityCheck
()
()
.() identity2
()
identity2 ~=
(, , )
(, , )
(, , )
()
()
test, status (tests)
(test .. .. (status == status == ))
(, totalTests)
(, failedTests)
(, ((totalTests - failedTests) / totalTests) * .. )
failedTests ==
()
()
This script is a Roblox Lua printidentity validator designed to test the integrity of executors by detecting any tampering or faking of the printidentity function. It ensures that the executor behaves as expected and is not bypassing identity restrictions or altering the Lua environment. Features Identity Value Check Verifies that the Current identity is within the valid range (0–9). Prevents executors that fake or manipulate identity values beyond this range. C Closure Check Confirms that printidentity is a native C closure. Detects if the function has been replaced or redefined. Source Integrity Check Validates that the source of printidentity is [C]. Flags executors that tamper with the original function source. Environment Modification Check Attempts to modify the environment of printidentity using setfenv. If protected, it marks the test as passed. If modifiable, it flags the executor as compromised. Thread Identity Check Uses set_thread_identity or setthreadidentity to switch thread identity and recheck printidentity. Ensures the function respects thread identity settings and detects manipulation. Test Results Summary Provides a clear summary of all checks with statuse