Universal Script 📌
41.0k Views
958 Executions

Simple FPS Viewer & Ping

Universal Script 📌
Xiamoi
XiamoiPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Simple FPS Viewer & Ping (Would recommend just auto exec it)

View Raw
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FPSPingGui"
screenGui.Parent = game:GetService("CoreGui")
local fpsLabel = Instance.new("TextLabel")
fpsLabel.Name = "FPSLabel"
fpsLabel.Size = UDim2.new(0, 200, 0, 60)  -- Increased size to 200x60
fpsLabel.Position = UDim2.new(0, -10, 0, 10)
fpsLabel.BackgroundTransparency = 1
fpsLabel.TextColor3 = Color3.new(1, 1, 1)
fpsLabel.TextStrokeTransparency = 0
fpsLabel.Font = Enum.Font.SourceSans
fpsLabel.TextSize = 40  -- Increased text size to 40
fpsLabel.Parent = screenGui
local pingLabel = Instance.new("TextLabel")
pingLabel.Name = "PingLabel"
pingLabel.Size = UDim2.new(0, 100, 0, 50)
pingLabel.Position = UDim2.new(0, 165, 0, 15) -- Adjusted position to be next to the FPS counter
pingLabel.BackgroundTransparency = 1
pingLabel.TextColor3 = Color3.new(1, 1, 1)
pingLabel.TextStrokeTransparency = 0
pingLabel.Font = Enum.Font.SourceSans
pingLabel.TextSize = 24
pingLabel.Parent = screenGui
local function calculateFPS()
    local lastTime = tick()
    local frames = 0
  game:GetService("RunService").RenderStepped:Connect(function()
        frames = frames + 1
        local currentTime = tick()
        if currentTime - lastTime >= 0.1 then
            local fps = math.floor(frames / (currentTime - lastTime))
            fpsLabel.Text = "FPS: " .. tostring(fps)
            if fps < 10 then
                fpsLabel.TextColor3 = Color3.new(1, 0, 0) -- Red color
            else
                fpsLabel.TextColor3 = Color3.new(1, 1, 1) -- White color
            end
            frames = 0
            lastTime = currentTime
        end


Comments

2
Log in to join the conversation. Login
Xiamoi's profile picture
XiamoiUploader2 years ago(edited)

@tencil I'll try to fix that

2
tencil's profile picture
tencil2 years ago(edited)

its good but its over chat n i had to move it 😭

1

Tags

More universal scripts

See all
Script hub
265.4k
102.3k
Bumped 38 minutes ago
Key System
Script hub
281.5k
916.9k
Bumped 3 hours ago
Key System

Script hub

#21 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
2.1M
704.6k
Bumped 4 hours ago
Key System

Script hub

#5 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
29.9k
88.2k
Bumped 5 hours ago
Script hub
19.0k
65.5k
Bumped 5 hours ago
Key System
Universal Script 📌
1.8k
6.7k
Bumped 7 hours ago
Key System
Script hub
191
33
Approved 7 hours ago
Paid

Script hub

anmultv hub

Universal Script 📌
167
52
Approved 7 hours ago