runService
RunService is a core Roblox service that exposes the engine’s update loop to scripts. It enables code to run in sync with the physics simulation, frame rendering, and the overall game loop. The service is accessed with game:GetService("RunService"), and its behavior can differ between server, client, and Studio contexts.
The service provides several events used to hook into the engine cycle. Stepped fires before each physics
In addition to events, RunService offers binding capabilities. BindToRenderStep enables registering a function to a named
Environment checks are supported via methods such as RunService:IsServer(), RunService:IsClient(), and RunService:IsStudio(), which help scripts tailor
Usage guidance. RenderStepped is typically used for client-side visuals and camera updates, Stepped for physics- or