Universal Script 📌
96.8k Views
71 Executions

Fps and ping counter

Universal Script 📌
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

Cool ping and fps counter

Updates

  1. Script edited: Create script

View Raw
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "StatsGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local statsLabel = Instance.new("TextLabel")
statsLabel.Size = UDim2.new(0, 150, 0, 40)
statsLabel.Position = UDim2.new(0, 10, 1, -50)
statsLabel.BackgroundColor3 = Color3.new(0, 0, 0)
statsLabel.BackgroundTransparency = 0.5
statsLabel.TextColor3 = Color3.new(1, 1, 1)
statsLabel.TextStrokeTransparency = 0
statsLabel.TextStrokeColor3 = Color3.new(1, 1, 1)
statsLabel.TextScaled = true
statsLabel.Text = "FPS: 0\nPing: 0"
statsLabel.Parent = screenGui

local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 10)
uiCorner.Parent = statsLabel

local uiStroke = Instance.new("UIStroke")
uiStroke.Parent = statsLabel
uiStroke.Thickness = 3
uiStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border

local function updateFPSAndPing()
    local lastUpdate = tick()
    while true do
        local now = tick()
        local fps = math.floor(1 / (now - lastUpdate))
        lastUpdate = now

        local stats = game:GetService("Stats")
        local pingValue = stats.Network.ServerStatsItem["Data Ping"]:GetValueString()

        statsLabel.Text = "FPS: " .. fps .. "\nPing: " .. pingValue

        wait(0.01)
    end


Comments

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

another day another skid 🤑🔥

1
v0idlua's profile picture
v0idlua11 months ago

Dit my new acc, I don't use Chatgpt anymore

1

More universal scripts

See all
Universal Script 📌
19
1
Approved 26 minutes ago
Universal Script 📌
21
5
Approved 28 minutes ago
Universal Script 📌
13
2
Approved 31 minutes ago
Universal Script 📌
20
0
Approved 36 minutes ago
Paid
Universal Script 📌
15
3
Approved 44 minutes ago
Universal Script 📌
20
1
Approved 52 minutes ago