Advertisement
Guest User

fps

a guest
Feb 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local player = game:service'Players'.LocalPlayer
  2. local fps = Instance.new('ScreenGui',player:waitForChild('PlayerGui'))
  3. local text = Instance.new('TextLabel',fps)
  4. text.BackgroundTransparency = 1
  5. text.Position = UDim2.new(1,0,1,0)
  6. text.Size = UDim2.new(0,-1,0,-16)
  7. text.Font = 'Code'
  8. text.FontSize = 'Size14'
  9. text.TextColor3 = Color3.new(0,1,0)
  10. text.TextXAlignment = 'Right'
  11. local rs = game:service'RunService'.RenderStepped
  12. while wait() do wait() wait()
  13. step = rs:wait()
  14. text.Text = 'FPS: '..tostring(math.floor((1/step)+.5))
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement