
KeylessUniversal

local oldGui = game:GetService("CoreGui"):FindFirstChild("FPS_Display")
if oldGui then oldGui:Destroy() end
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FPS_Display"
screenGui.Parent = game:GetService("CoreGui")
screenGui.IgnoreGuiInset = true
local fpsLabel = Instance.new("TextLabel")
fpsLabel.Parent = screenGui
fpsLabel.Size = UDim2.new(0, 120, 0, 30)
fpsLabel.Position = UDim2.new(1, -130, 0, 10)
fpsLabel.BackgroundTransparency = 0.5
fpsLabel.BackgroundColor3 = Color3.new(0, 0, 0)
fpsLabel.TextColor3 = Color3.new(1, 1, 1)
fpsLabel.TextSize = 18
fpsLabel.Font = Enum.Font.Code
local RunService = game:GetService("RunService")
local lastTime = tick()
local frameCount = 0
RunService.RenderStepped:Connect(function()
frameCount = frameCount + 1
local currentTime = tick()
local delta = currentTime - lastTime
if delta >= 1 then
local fps = frameCount / delta
if fps < 1 then
fpsLabel.Text = string.format("FPS: %.2f", fps)
else
fpsLabel.Text = "FPS: " .. math.floor(fps)
end
frameCount = 0
lastTime = currentTime
end
end)No comments yet for this script.



