RunService
RunService is available through game:GetService("RunService").
Summary
Methods
IsClient
Boolean
RunService:IsClient()Returns whether the current script runs in a client context.
IsServer
Boolean
RunService:IsServer()Returns whether the current script runs in a server context.
IsStudio
Boolean
RunService:IsStudio()Returns whether the current runtime is Vortex Studio.
Signals
Heartbeat
RunService.HeartbeatFires once per runtime update with the elapsed time since the previous update.
Parameters
deltaTime:Number— elapsed time in seconds since the previous heartbeat.
Testing Notes
These observations are from Vortex Studio 0.3.4 and may differ in later releases.
IsClient() returned true in a LocalScript and false in a Script.
IsServer() returned the inverse. IsStudio() returned true in both
contexts.
Heartbeat supports Connect, Once, and Wait. Its observed deltaTime
varied between updates, so it should not be treated as a fixed interval.