Universal Script 📌
996 Views
7.2k Executions

Ping viewer

Universal Script 📌
Doggggggg1
Doggggggg110K executions
4 months 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

Nothing much just something simple that shows you your ping I mostly put it in my autoexecute folder

View Raw
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")

local UPDATE_INTERVAL = 0.5
local floor = math.floor

-- pre-computed colors
local GREEN  = Color3.fromRGB(0, 255, 0)
local YELLOW = Color3.fromRGB(255, 200, 0)
local RED    = Color3.fromRGB(255, 60, 60)
local GRAY   = Color3.fromRGB(180, 180, 180)

-- destroy old instance on re-execution
local old = CoreGui:FindFirstChild("PingDisplay")
if old then old:Destroy() end

local gui = Instance.new("ScreenGui")
gui.Name = "PingDisplay"
gui.ResetOnSpawn = false
gui.IgnoreGuiInset = true
gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
gui.Parent = CoreGui

local label = Instance.new("TextLabel")
label.Name = "PingLabel"
label.BackgroundTransparency = 1
label.AnchorPoint = Vector2.new(1, 0)
label.Position = UDim2.new(1, -8, 0, 8)
label.Size = UDim2.fromOffset(140, 20)
label.Font = Enum.Font.Gotham
label.TextSize = 14
label.TextXAlignment = Enum.TextXAlignment.Right
label.TextYAlignment = Enum.TextYAlignment.Top
label.TextColor3 = GRAY
label.TextStrokeTransparency = 0
label.Text = "Ping: -- ms"
label.Parent = gui

local function colorForPing(ms)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
19.3k
178.7k
Bumped 24 minutes ago
Key System
Script hub
51
4
2 hours ago
Key System
Script hub
272.3k
143.3k
Bumped 38 minutes ago
Key System
Script hub
182.1k
1.8M
Bumped 2 hours ago
Key System

Script hub

#18 this week

Verified script badgeAirflow HUB

Script hub
71.2k
235.0k
Bumped 2 hours ago
Key System
Script hub
157
9
3 hours ago
Universal Script 📌
155
8
3 hours ago