get_process_identifier Synchronous

  • getpid
  • getprocessidentifier

Read the operating-system process ID of the running host. It helps distinguish two local logs that came from separate launches.

Syntax
Luau
get_process_identifier() -> number

Parameters

This function takes no arguments.

Returns

number

The 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

Example
Luau
local name, version = identifyexecutor()
print(name, version, "process", get_process_identifier())
Kawaii documentation