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

How do I find the Frames Per Second in the game?

I am wanting to make a gui that shows the FPS(Frames Per Second) on it. I have no idea how to do it.

1 comment

0

Set the text to run.Heartbeat

2 answers

✓ Accepted answer
local fps = 0
game:GetService("RunService").RenderStepped:connect(function()
	fps = fps + 1
end)
while true do
	wait(1)
	---------- Below is what you should edit ----------
	print(fps) -- This prints how many frames you get per second.
	-------------------------------------------------------------
	fps = 0
end

Place that in a LocalScript and it'll print how many frames per second you get.

1 comment

1

Sure

local FPS = game.Workspace:GetRealPhysicsFPS()

This isn't tested in game yet! But i used one myself

1 comment

0

yep

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