local WindUI = loadstring(game:HttpGet("https://github.com/Footagesus/WindUI/releases/latest/download/main.lua"))()
local Window = WindUI:CreateWindow({
Title = "My Super Hub",
Icon = "door-open", -- lucide icon. optional
Author = "by .ftgs and .ftgs", -- optional
})
Window:EditOpenButton({
Title = "Open Example UI",
Icon = "monitor",
CornerRadius = UDim.new(0,16),
StrokeThickness = 2,
Color = ColorSequence.new( -- gradient
Color3.fromHex("FF0F7B"),
Color3.fromHex("F89B29")
),
OnlyMobile = false,
Enabled = true,
Draggable = true,
})
local Tab = Window:Tab({
Title = "Server info",
Icon = "bird", -- optional
Locked = false,
})
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Stats = game:GetService("Stats")
local TeleportService = game:GetService("TeleportService")
local LocalizationService = game:GetService("LocalizationService")
local lp = Players.LocalPlayer
local startTime = os.clock()
local Paragraph = Tab:Paragraph({
Title = "Server Info",
Desc = "Loading...",
Locked = false
})
-- FPS counter
local fps = 0
do
local frames = 0
local last = os.clock()
RunService.RenderStepped:Connect(function()
frames += 1
if os.clock() - last >= 1 then
fps = frames
frames = 0
last = os.clock()
end
end)
end
-- Format uptime
local function formatTime(sec)
local h = math.floor(sec / 3600)
local m = math.floor((sec % 3600) / 60)
local s = math.floor(sec % 60)
return string.format("%02d:%02d:%02d", h, m, s)
end
-- Auto-update paragraph
task.spawn(function()
while task.wait(1) do
local uptime = formatTime(os.clock() - startTime)
local ping = Stats.Network.ServerStatsItem["Data Ping"]:GetValueString()
local memory = math.floor(Stats:GetTotalMemoryUsageMb())
local serverType =
game.PrivateServerId ~= "" and
(game.PrivateServerOwnerId ~= 0 and "Private" or "Reserved")
or "Public"
local time12 = os.date("%I:%M:%S %p"):gsub("^0", "")
-- MULTILINE description
Paragraph:SetDesc(
string.format(
"š„ Players: %d/%d\nš® Game: %d\nš Job: %s\nš Server Type: %s\nš¶ Ping: %s\nš„ FPS: %d\nš¾ Memory: %dMB\nā± Uptime: %s\nš Time: %s",
#Players:GetPlayers(),
Players.MaxPlayers,
game.GameId,
game.JobId,
serverType,
ping,
fps,
memory,
uptime,
time12
)
)
end
end)
-- Buttons
Tab:Button({
Title = "Copy Job ID",
Callback = function()
setclipboard(game.JobId)
end
})
Tab:Button({
Title = "Rejoin Server",
Callback = function()
TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, lp)
end
})
Comments
No comments yet
Be the first to share your thoughts!