WalrusBomb

Accurate FPS Counter for Roblox

May 17th, 2020
3,184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. --Created by UraniumBanana5
  2. local runService = game:GetService("RunService")
  3.  
  4. local fpsLabel = script.Parent
  5. local fps = 0
  6.  
  7. runService.RenderStepped:Connect(function()
  8.     fps = fps + 1
  9. end)
  10.  
  11. while true do
  12.     fpsLabel.Text = ("FPS: "..fps)
  13.     fps = 0
  14.     wait(1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment