Advertisement
SpacecowboyHX

Untitled

Jan 13th, 2021
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local count = 0
  2. local start = tick()
  3. local TEXTLABEL = script.Parent --PUT TEXTLABEL SUBJECT HERE
  4. game:GetService("RunService").RenderStepped:Connect(function()
  5.     if tick()-start>=1 then
  6.         TEXTLABEL = tostring(count).." FPS"
  7.         start = tick()
  8.         count = 0
  9.     else
  10.         count = count+1
  11.     end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement