Stepped (Event)

From Legacy Roblox Wiki
Revision as of 04:36, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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