Miscellaneous
Identify the executor, use the clipboard, survive teleports and cap the frame rate.
Everything that doesn't belong to a library: executor details, the clipboard, teleports, performance and thread identity.
Executor
identifyexecutor
since 1.0.0identifyexecutor(): (string, string)Returns the executor's name and version: "Lynx" and the module's build number. The build number is not the app version shown in the title bar.
Also available as getexecutorname.
Returns
(string, string)Name and module build.
Example
Clipboard
setclipboard
since 1.0.0setclipboard(text: string): ()Copies text to the Windows clipboard.
Also available as toclipboard.
Parameters
textstring- The text to copy.
Example
Teleports
queue_on_teleport
since 1.0.0queue_on_teleport(source: string): ()Queues source to run after the next teleport, once the new place has loaded. Call it more than once to queue several scripts. The queue is cleared after it runs.
Also available as queueonteleport.
Parameters
sourcestring- Luau source to run in the next place.
Example
Performance
setfpscap
since 1.0.0setfpscap(fps: number): ()Caps the client's frame rate at fps. Pass 0 to remove the cap.
Parameters
fpsnumber- Frames per second, or
0for unlimited.
Example
Thread identity
getthreadidentity
since 1.0.0getthreadidentity(): numberReturns the identity of the current thread. Code you execute runs at 8.
Also available as getidentity and getthreadcontext.
Returns
numberThe thread identity.
Example
setthreadidentity
since 1.0.0setthreadidentity(identity: number): ()Sets the identity of the current thread. Lower identities lose access to protected APIs, which makes this a quick way to see what game code can and can't do.
Also available as setidentity and setthreadcontext.
Parameters
identitynumber- The new identity, from 0 to 8.
Example
Written for Lynx 0.0.0
Something unclear? Tell us on Discord