Universal Script 📌
686 Views
3.3k Executions

InfoBar

Universal Script 📌
goodcurry
goodcurryFirst script
2 months ago

Reviewed by QueueHeroPaid revieweron How review works

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

its just a fps and ping counter in green text nothing special

View Raw
--please give credits if you use in projects -> discord: cool.guy.69
local runserv = game:GetService("RunService")
local stats = game:GetService("Stats")

local gui = Instance.new("ScreenGui")
gui.Name = "IB_" .. math.random(1000,9999)
gui.ResetOnSpawn = false
gui.DisplayOrder = 999999
if syn and syn.protect_gui then syn.protect_gui(gui) end
gui.Parent = gethui and gethui() or game:GetService("CoreGui")

local bar = Instance.new("Frame")
bar.Size = UDim2.new(0, 220, 0, 32)
bar.Position = UDim2.new(0.5, -110, 0, 8)
bar.BackgroundTransparency = 1
bar.Active = true
bar.Draggable = true
bar.Parent = gui

local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(1, 0, 1, 0)
lbl.BackgroundTransparency = 1
lbl.TextColor3 = Color3.fromRGB(22, 163, 74)
lbl.TextSize = 16
lbl.Font = Enum.Font.Code
lbl.TextXAlignment = Enum.TextXAlignment.Center
lbl.TextYAlignment = Enum.TextYAlignment.Center
lbl.Parent = bar

local fps, frames, last = 60, 0, tick()

runserv.RenderStepped:Connect(function()
	frames += 1
	if tick() - last >= 0.5 then
		fps = math.floor(frames / (tick() - last))
		frames, last = 0, tick()
		local ping = math.floor(stats.Network.ServerStatsItem["Data Ping"]:GetValue())
		lbl.Text = "[ PING ] " .. ping .. "MS | [ FPS ] " .. fps
	end
end)


Comments

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

More universal scripts

See all
Script hub
3.0M
14.6M
3 years ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
69
4
2 days ago
Key System
Script hub
216
11
2 days ago
Universal Script 📌
4.4k
26.6k
4 months ago
Script hub
1.3k
29
4 days ago
Key System