I get confused and I don’t understand RunService
really well. I would appreciate it if someone could explain this to me in a really detailed way. Thanks again!
RunService
takes care of any and all progression of time and determining where a script is running (server or client).
The functions RunService:IsClient()
, RunService:IsServer()
, and RunService:IsStudio()
can determine whether a script exists, and the events Heartbeat
, Stepped
, and RenderStepped
are used to perform actions literally every frame. There are countless others -- make sure to check the documentation.