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

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

Asked by
FiredDusk 1466 Moderation Voter
7 years ago

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

0
Set the text to run.Heartbeat DepressionSensei 315 — 7y

2 answers

Log in to vote
3
Answered by 7 years ago
Edited 7 years ago
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
Sure User#11440 120 — 7y
Ad
Log in to vote
3
Answered by
Valatos 166
7 years ago
local FPS = game.Workspace:GetRealPhysicsFPS()

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

0
yep User#11440 120 — 7y

Answer this question