RunService.Heartbeat
Frame signals that fire every tick with the delta time. Use in a loop with task.wait().
Syntax
RunService.Heartbeat
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
RBXScriptSignal | The returned RBXScriptSignal. |
Description
RunService.Heartbeat is part of the Services library. Service shims are pumped by the external tick loop and expose the parts of Roblox services the VM supports.
This entry describes an object or signal exposed by the library rather than a standalone callable function.
The aliases RunService.RenderStepped, RunService.Stepped resolve to the same implementation.
Example
RunService.Heartbeat:Connect(function(dt)
-- runs every frame
end)
Notes
- Aliases:
RunService.RenderStepped,RunService.Stepped. - Service signals are pumped by the external tick loop.