setfpscap
Reads or overrides the scheduler FPS cap.
Syntax
setfpscap(fps: number) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
fps | number | The fps value used by the call. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
setfpscap is part of the Miscellaneous library. Miscellaneous helpers cover module identity, scheduler settings, teleport queueing and other process-level utilities.
The change is applied directly to the live target, so later reads observe the updated value.
The aliases getfpscap() resolve to the same implementation.
Example
setfpscap(240)
print(getfpscap())
Notes
- Aliases:
getfpscap(). - Some settings affect the module globally rather than the current script.