Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to get FPS
- local RunService = game:GetService("RunService")
- local fps = 0
- -- Calculate FPS
- RunService.RenderStepped:Connect(function(deltaTime)
- fps = math.floor(1 / deltaTime) -- FPS calculation
- end)
- -- Wait for FPS calculation to stabilize
- wait(0.1)
- -- Create a core notification
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "FPS TEST", -- Title of the notification
- Text = "Current FPS: " .. tostring(fps), -- Display the FPS
- Duration = 5 -- Duration in seconds the notification will show
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement