get_process_identifier Synchronous
getpidgetprocessidentifier
Read the operating-system process ID of the running host. It helps distinguish two local logs that came from separate launches.
Luau
get_process_identifier() -> numberParameters
This function takes no arguments.
Returns
numberThe current process ID as a number.
Usage notes
Aliases include getpid and getprocessidentifier.
A PID is not a stable device or user ID; it can change whenever the process starts.
Example
Luau
local name, version = identifyexecutor()
print(name, version, "process", get_process_identifier())