Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is Run Service? and How can it be used?

Asked by 5 years ago

I honestly don't understand it.

0
They could probably explain it better than I could https://developer.roblox.com/en-us/api-reference/class/RunService namespace25 594 — 5y

1 answer

Log in to vote
1
Answered by
gloveshun 119
5 years ago
Edited 5 years ago

I use it to count fps.

local runs = game:GetService("RunService")

local frames = 0
runs.RenderStepped:connect(function()
    frames = frames + 1
end)
while wait(1) do
    print("Local fps: "..frames)
    frames = 0
end
0
what is it for generall? User#23252 26 — 5y
0
is it for local, only works in localscript gloveshun 119 — 5y
0
i learned bout it.. here is free points User#23252 26 — 4y
0
thanks gloveshun 119 — 4y
Ad

Answer this question