Advertisement
ILovePotato

Untitled

Jan 23rd, 2025
4,414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. -- Function to get FPS
  2. local RunService = game:GetService("RunService")
  3. local fps = 0
  4.  
  5. -- Calculate FPS
  6. RunService.RenderStepped:Connect(function(deltaTime)
  7. fps = math.floor(1 / deltaTime) -- FPS calculation
  8. end)
  9.  
  10. -- Wait for FPS calculation to stabilize
  11. wait(0.1)
  12.  
  13. -- Create a core notification
  14. game:GetService("StarterGui"):SetCore("SendNotification", {
  15. Title = "FPS TEST", -- Title of the notification
  16. Text = "Current FPS: " .. tostring(fps), -- Display the FPS
  17. Duration = 5 -- Duration in seconds the notification will show
  18. })
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement