Class
RunService
since 1.6.9-alpha
Exposes the frame lifecycle events scripts can hook into to run code each frame.
InheritsInstance
Properties
4| Name | Type | Access | Description |
|---|---|---|---|
| PreRender | Event | read | Fires immediately before anything is rendered, passing the frame's delta time. The since 1.6.9-alphaRoblox ↗ |
| PreSimulation | Event | read | Fires before the local physics world is stepped. Passes no arguments. since 1.6.9-alphaRoblox ↗ |
| Heartbeat | Event | read | Fires every frame once rendering is finished, passing the frame's delta time. since 1.6.9-alphaRoblox ↗ |
| OnImGui | Event | read | Fires inside the ImGui frame after the built-in Madius UI has finished rendering, passing the frame's delta time. Use this to draw your own ImGui widgets on top of the overlay; raw ImGui:: calls are only valid inside connections to this event. since 1.8.3-free |