Advertisement
Guest User

Fps count

a guest
Jul 27th, 2022
263,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. repeat wait() until game:IsLoaded() wait(2)
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Fps = Instance.new("TextLabel")
  4.  
  5. --Properties:
  6.  
  7. ScreenGui.Parent = game.CoreGui
  8. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.  
  10. Fps.Name = "Fps"
  11. Fps.Parent = ScreenGui
  12. Fps.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  13. Fps.BackgroundTransparency = 1.000
  14. Fps.Position = UDim2.new(0.786138654, 0, 0, 0)
  15. Fps.Size = UDim2.new(0, 125, 0, 25)
  16. Fps.Font = Enum.Font.SourceSans
  17. Fps.TextColor3 = Color3.fromRGB(1,1,1)
  18. Fps.TextScaled = true
  19. Fps.TextSize = 14.000
  20. Fps.TextWrapped = true
  21.  
  22. -- Scripts:
  23.  
  24. local script = Instance.new('LocalScript', Fps)
  25. local RunService = game:GetService("RunService")
  26. RunService.RenderStepped:Connect(function(frame) -- This will fire every time a frame is rendered
  27. script.Parent.Text = ("FPS: "..math.round(1/frame))
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement