Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

1 answer

✓ Accepted answer

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

4 comments

0

what is it for generall?

0

is it for local, only works in localscript

0

i learned bout it.. here is free points

0

thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.