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
8 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 — 8y

2 answers

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

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

0
yep User#11440 120 — 8y

Answer this question