Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("CoreGui"):FindFirstChild("UIGui") then
- game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
- end
- local UIGui = Instance.new("ScreenGui")
- local WelcomeLabel = Instance.new("TextLabel")
- local PlayerIcon = Instance.new("ImageLabel")
- local PlayerIconUI = Instance.new("UICorner")
- local PlayerIconBackground = Instance.new("Frame")
- local PlayerIconBackgroundUI = Instance.new("UICorner")
- local GameFrameBackground = Instance.new("Frame")
- local GameFrameBackgroundUICorner = Instance.new("UICorner")
- local GameFrame = Instance.new("ImageLabel")
- local GameFrameUICorner = Instance.new("UICorner")
- local FPSLabel = Instance.new("TextLabel")
- local FPSLabelUICorner = Instance.new("UICorner")
- local RunService = game:GetService("RunService")
- local RenderStepped = RunService.RenderStepped
- local sec = nil
- local FPS = {}
- local PingLabel = Instance.new("TextLabel")
- local PingLabelUICorner = Instance.new("UICorner")
- local CPULabel = Instance.new("TextLabel")
- local CPUUICorner = Instance.new("UICorner")
- local GPULabel = Instance.new("TextLabel")
- local GPUUICorner = Instance.new("UICorner")
- local PlayersInServer = Instance.new("TextLabel")
- local PlayersInServerUICorner = Instance.new("UICorner")
- local ServerSize = Instance.new("TextLabel")
- local ServerSizeUICorner = Instance.new("UICorner")
- local ServerLive = Instance.new("TextLabel")
- local ServerLiveUICorner = Instance.new("UICorner")
- local Executor = Instance.new("TextLabel")
- local ExecutorUICorner = Instance.new("UICorner")
- local function format(Int)
- return string.format("%02i", Int)
- end
- local function convertToHMS(Seconds)
- local Minutes = (Seconds - Seconds%60)/60
- Seconds = Seconds - Minutes*60
- local Hours = (Minutes - Minutes%60)/60
- Minutes = Minutes - Hours*60
- return format(Hours)..":"..format(Minutes)..":"..format(Seconds)
- end
- UIGui.Name = "UIGui"
- UIGui.Parent = game.CoreGui
- game.CoreGui.UIGui.Enabled = true
- PlayerIcon.Name = "PlayerIcon"
- PlayerIcon.Parent = PlayerIconBackground
- PlayerIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PlayerIcon.Position = UDim2.new(0.026, 0, 0.025, 0)
- PlayerIcon.Size = UDim2.new(0, 66, 0, 66)
- PlayerIcon.Image = "rbxassetid://15980315949"
- PlayerIconUI.Parent = PlayerIcon
- PlayerIconUI.CornerRadius = UDim.new(0.5, 0)
- PlayerIconBackground.Name = "PlayerIconBackground"
- PlayerIconBackground.Parent = GameFrame
- PlayerIconBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- PlayerIconBackground.Position = UDim2.new(0.05, 0, -0.6, 0)
- PlayerIconBackground.Size = UDim2.new(0, 70, 0, 70)
- PlayerIconBackgroundUI.Parent = PlayerIconBackground
- PlayerIconBackgroundUI.CornerRadius = UDim.new(0.5, 0)
- WelcomeLabel.Name = "WelcomeLabel"
- WelcomeLabel.Parent = GameFrame
- WelcomeLabel.BackgroundTransparency = 1
- WelcomeLabel.Position = UDim2.new(0.23, 0, -0.6, 0)
- WelcomeLabel.Size = UDim2.new(0.5, 0, 0.4, 0)
- WelcomeLabel.Font = Enum.Font.SourceSansBold
- WelcomeLabel.Text = "Welcome Home, "..game.Players.LocalPlayer.DisplayName
- WelcomeLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- WelcomeLabel.TextXAlignment = Enum.TextXAlignment.Left
- WelcomeLabel.TextYAlignment = Enum.TextYAlignment.Top
- WelcomeLabel.TextWrapped = true
- WelcomeLabel.TextSize = 25
- GameFrameBackground.Name = "GameFrameBackground"
- GameFrameBackground.Parent = UIGui
- GameFrameBackground.Position = UDim2.new(0.25, 0, 0.3, 0)
- GameFrameBackground.Size = UDim2.new(0.5, 0, 0.5, 0)
- GameFrameBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- GameFrameBackgroundUICorner.Parent = GameFrameBackground
- GameFrameBackgroundUICorner.CornerRadius = UDim.new(0, 12)
- GameFrame.Name = "GameFrame"
- GameFrame.Parent = GameFrameBackground
- GameFrame.Position = UDim2.new(0.005, 0, 0.01, 0)
- GameFrame.Size = UDim2.new(0.99, 0, 0.985, 0)
- GameFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- GameFrame.Image = "rbxassetid://16027463995"
- GameFrameUICorner.Parent = GameFrame
- GameFrameUICorner.CornerRadius = UDim.new(0, 12)
- FPSLabel.Name = "FPSLabel"
- FPSLabel.Parent = GameFrame
- FPSLabel.Position = UDim2.new(0.01, 0, 0.015, 0)
- FPSLabel.Size = UDim2.new(0.35, 0, 0.2, 0)
- FPSLabel.Font = Enum.Font.SourceSansBold
- FPSLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- FPSLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- FPSLabel.TextSize = 25
- FPSLabel.BackgroundTransparency = 0.8
- FPSLabelUICorner.Parent = FPSLabel
- FPSLabelUICorner.CornerRadius = UDim.new(0, 12)
- local function fre()
- local fr = tick()
- for index = #FPS,1,-1 do
- FPS[index + 1] = (FPS[index] >= fr - 1) and FPS[index] or nil
- end
- FPS[1] = fr
- local fps = (tick() - sec >= 1 and #FPS) or (#FPS / (tick() - sec))
- fps = math.floor(fps)
- FPSLabel.Text = "Fps: "..fps
- end
- sec = tick()
- RenderStepped:Connect(fre)
- PingLabel.Name = "PingLabel"
- PingLabel.Parent = GameFrame
- PingLabel.Position = UDim2.new(0.37, 0, 0.015, 0)
- PingLabel.Size = UDim2.new(0.62, 0, 0.2, 0)
- PingLabel.Font = Enum.Font.SourceSansBold
- PingLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PingLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- PingLabel.TextSize = 25
- PingLabel.BackgroundTransparency = 0.8
- PingLabelUICorner.Parent = PingLabel
- PingLabelUICorner.CornerRadius = UDim.new(0, 12)
- CPULabel.Name = "CPULabel"
- CPULabel.Parent = GameFrame
- CPULabel.Position = UDim2.new(0.01, 0, 0.265, 0)
- CPULabel.Size = UDim2.new(0.62, 0, 0.2, 0)
- CPULabel.Font = Enum.Font.SourceSansBold
- CPULabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CPULabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- CPULabel.TextSize = 25
- CPULabel.BackgroundTransparency = 0.8
- CPUUICorner.Parent = CPULabel
- CPUUICorner.CornerRadius = UDim.new(0, 12)
- GPULabel.Name = "GPULabel"
- GPULabel.Parent = GameFrame
- GPULabel.Position = UDim2.new(0.64, 0, 0.265, 0)
- GPULabel.Size = UDim2.new(0.35, 0, 0.2, 0)
- GPULabel.Font = Enum.Font.SourceSansBold
- GPULabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- GPULabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- GPULabel.TextSize = 25
- GPULabel.BackgroundTransparency = 0.8
- GPUUICorner.Parent = GPULabel
- GPUUICorner.CornerRadius = UDim.new(0, 12)
- PlayersInServer.Name = "PlayersInServer"
- PlayersInServer.Parent = GameFrame
- PlayersInServer.Position = UDim2.new(0.01, 0, 0.78, 0)
- PlayersInServer.Size = UDim2.new(0.62, 0, 0.2, 0)
- PlayersInServer.Font = Enum.Font.SourceSansBold
- PlayersInServer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PlayersInServer.TextColor3 = Color3.fromRGB(255, 255, 255)
- PlayersInServer.TextSize = 25
- PlayersInServer.BackgroundTransparency = 0.8
- PlayersInServerUICorner.Parent = PlayersInServer
- PlayersInServerUICorner.CornerRadius = UDim.new(0, 12)
- ServerSize.Name = "ServerSize"
- ServerSize.Parent = GameFrame
- ServerSize.Position = UDim2.new(0.64, 0, 0.78, 0)
- ServerSize.Size = UDim2.new(0.35, 0, 0.2, 0)
- ServerSize.Font = Enum.Font.SourceSansBold
- ServerSize.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ServerSize.TextColor3 = Color3.fromRGB(255, 255, 255)
- ServerSize.TextSize = 25
- ServerSize.BackgroundTransparency = 0.8
- ServerSizeUICorner.Parent = ServerSize
- ServerSizeUICorner.CornerRadius = UDim.new(0, 12)
- ServerLive.Name = "ServerLive"
- ServerLive.Parent = GameFrame
- ServerLive.Position = UDim2.new(0.01, 0, 0.52, 0)
- ServerLive.Size = UDim2.new(0.35, 0, 0.2, 0)
- ServerLive.Font = Enum.Font.SourceSansBold
- ServerLive.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ServerLive.TextColor3 = Color3.fromRGB(255, 255, 255)
- ServerLive.TextSize = 25
- ServerLive.BackgroundTransparency = 0.8
- ServerLive.TextScaled = true
- ServerLiveUICorner.Parent = ServerLive
- ServerLiveUICorner.CornerRadius = UDim.new(0, 12)
- Executor.Name = "Executor"
- Executor.Parent = GameFrame
- Executor.Position = UDim2.new(0.37, 0, 0.52, 0)
- Executor.Size = UDim2.new(0.62, 0, 0.2, 0)
- Executor.Font = Enum.Font.SourceSansBold
- Executor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Executor.TextColor3 = Color3.fromRGB(255, 255, 255)
- Executor.TextSize = 25
- Executor.BackgroundTransparency = 0.8
- ExecutorUICorner.Parent = Executor
- ExecutorUICorner.CornerRadius = UDim.new(0, 12)
- spawn(function()
- repeat
- wait()
- local ping = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").Ping:GetValue())
- local gpu = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").GPU:GetValue())
- local cpu = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").CPU:GetValue())
- cpu = math.floor(cpu)
- gpu = math.floor(gpu)
- ping = math.floor(ping)
- PingLabel.Text = "Ping: "..ping
- CPULabel.Text = "CPU: "..cpu
- GPULabel.Text = "GPU: "..gpu
- PlayersInServer.Text = "Players: "..#game.Players:GetPlayers()
- ServerSize.Text = "Server Size: "..game.Players.MaxPlayers
- ServerLive.Text = "Server Live: "..convertToHMS(time())
- Executor.Text = "Executor: "..identifyexecutor()
- until PingLabel == nil
- end)
- PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement