PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Stepped

The Stepped event fires on every step in the RunService, which is approximately every 1/60th (or 0.0166) seconds. If the framerate drops, this event fires less often. It is recommended that this event be used for visual effects; use RunService/Heartbeat for gameplay-related events.

There’s no guarantee that functions connected to this event will fire at the exact same time. To be sure that certain functions are called in synchronization with each other, use RunService/BindToRenderStep instead, which allows specification of a render priority.

Parameters

Name Type Default Description

A double indicating ow long the RunService has been running overall.

A double indicating the time since the last step.


Code Samples


RunService.Stepped1

This code will print Stepped every frame.

game:GetService('RunService').Stepped:Connect(function()
	print("Stepped")
end)