Stepped (Event)

From Legacy Roblox Wiki
Revision as of 03:06, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">")
Jump to navigationJump to search
Stepped ( number time, number step )
Description Fired on every "step" in the RunService, a time of approximately 1/30th of a second. The time argument is how long the RunService has been running overall. The step argument seems to always be 1/30, which is an approximation of one frame.
Member of: RunService


Example

This code will print Stepped every frame. <SyntaxHighlight code="lua"> game:GetService('RunService').Stepped:connect(function() print("Stepped") end)