Universal Script 📌
96.8k Views
92 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
v0idlua1 year ago

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

1

More universal scripts

See all
Script hub
23.3k
4.9k
Bumped 1 hour ago
Key System
Paid
High Quality Offering
Script hub
4.1M
544.6k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script 📌
13.9k
55.0k
Bumped 6 hours ago
High Quality Offering
Script hub
2.9M
974.1k
Bumped 6 hours ago
Key System
Universal Script 📌
9.2k
210.0k
Bumped 6 hours ago
Script hub
86.7k
363.1k
Bumped 6 hours ago
Key System
Universal Script 📌
9.0k
146.8k
Bumped 7 hours ago
High Quality Offering
Universal Script 📌
11.4k
7.2k
Bumped 8 hours ago
High Quality Offering