Reference/Classes/RunService
Class

RunService

since 1.6.9-alpha

Exposes the frame lifecycle events scripts can hook into to run code each frame.

InheritsInstance

Properties

4
NameTypeAccessDescription
PreRenderEventread

Fires immediately before anything is rendered, passing the frame's delta time. The immediate drawing library is only usable inside connections to this event.

since 1.6.9-alphaRoblox ↗
PreSimulationEventread

Fires before the local physics world is stepped. Passes no arguments.

since 1.6.9-alphaRoblox ↗
HeartbeatEventread

Fires every frame once rendering is finished, passing the frame's delta time.

since 1.6.9-alphaRoblox ↗
OnImGuiEventread

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