RunService

The heartbeat of your scripts, like Roblox's: run code every frame, and know when a render is catching up.

RunService is a service: get it with game:GetService("RunService"). Heartbeat, Stepped and RenderStepped fire every frame while scripts run, on play time rather than the wall clock. IsCatchingUp() is true while a render runs the frames before its first one with drawing off, so heavy code can skip itself. IsStudio() and IsRunning() both return true.

Instancenot insertableServices

Methods

NameArgumentsReturnsDescription
IsCatchingUp()booleanTrue while a render runs a frame before its first one with drawing off; false while scripts start and in drawn frames.
IsRunning()booleanAlways returns true.
IsStudio()booleanAlways returns true.

Events

NameType
HeartbeatRBXScriptSignal
RenderSteppedRBXScriptSignal
SteppedRBXScriptSignal
From Instance 22