Advertisement
ERROR_CODE

home menu

Jan 17th, 2024 (edited)
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.86 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("UIGui") then
  2. game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
  3. end
  4. local UIGui = Instance.new("ScreenGui")
  5. local WelcomeLabel = Instance.new("TextLabel")
  6. local PlayerIcon = Instance.new("ImageLabel")
  7. local PlayerIconUI = Instance.new("UICorner")
  8. local PlayerIconBackground = Instance.new("Frame")
  9. local PlayerIconBackgroundUI = Instance.new("UICorner")
  10. local GameFrameBackground = Instance.new("Frame")
  11. local GameFrameBackgroundUICorner = Instance.new("UICorner")
  12. local GameFrame = Instance.new("ImageLabel")
  13. local GameFrameUICorner = Instance.new("UICorner")
  14. local FPSLabel = Instance.new("TextLabel")
  15. local FPSLabelUICorner = Instance.new("UICorner")
  16. local RunService = game:GetService("RunService")
  17. local RenderStepped = RunService.RenderStepped
  18. local sec = nil
  19. local FPS = {}
  20. local PingLabel = Instance.new("TextLabel")
  21. local PingLabelUICorner = Instance.new("UICorner")
  22. local CPULabel = Instance.new("TextLabel")
  23. local CPUUICorner = Instance.new("UICorner")
  24. local GPULabel = Instance.new("TextLabel")
  25. local GPUUICorner = Instance.new("UICorner")
  26. local PlayersInServer = Instance.new("TextLabel")
  27. local PlayersInServerUICorner = Instance.new("UICorner")
  28. local ServerSize = Instance.new("TextLabel")
  29. local ServerSizeUICorner = Instance.new("UICorner")
  30. local ServerLive = Instance.new("TextLabel")
  31. local ServerLiveUICorner = Instance.new("UICorner")
  32. local Executor = Instance.new("TextLabel")
  33. local ExecutorUICorner = Instance.new("UICorner")
  34.  
  35. local function format(Int)
  36. return string.format("%02i", Int)
  37. end
  38.  
  39. local function convertToHMS(Seconds)
  40. local Minutes = (Seconds - Seconds%60)/60
  41. Seconds = Seconds - Minutes*60
  42. local Hours = (Minutes - Minutes%60)/60
  43. Minutes = Minutes - Hours*60
  44. return format(Hours)..":"..format(Minutes)..":"..format(Seconds)
  45. end
  46.  
  47. UIGui.Name = "UIGui"
  48. UIGui.Parent = game.CoreGui
  49. game.CoreGui.UIGui.Enabled = true
  50.  
  51. PlayerIcon.Name = "PlayerIcon"
  52. PlayerIcon.Parent = PlayerIconBackground
  53. PlayerIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  54. PlayerIcon.Position = UDim2.new(0.026, 0, 0.025, 0)
  55. PlayerIcon.Size = UDim2.new(0, 66, 0, 66)
  56. PlayerIcon.Image = "rbxassetid://15980315949"
  57.  
  58. PlayerIconUI.Parent = PlayerIcon
  59. PlayerIconUI.CornerRadius = UDim.new(0.5, 0)
  60.  
  61. PlayerIconBackground.Name = "PlayerIconBackground"
  62. PlayerIconBackground.Parent = GameFrame
  63. PlayerIconBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  64. PlayerIconBackground.Position = UDim2.new(0.05, 0, -0.6, 0)
  65. PlayerIconBackground.Size = UDim2.new(0, 70, 0, 70)
  66.  
  67. PlayerIconBackgroundUI.Parent = PlayerIconBackground
  68. PlayerIconBackgroundUI.CornerRadius = UDim.new(0.5, 0)
  69.  
  70. WelcomeLabel.Name = "WelcomeLabel"
  71. WelcomeLabel.Parent = GameFrame
  72. WelcomeLabel.BackgroundTransparency = 1
  73. WelcomeLabel.Position = UDim2.new(0.23, 0, -0.6, 0)
  74. WelcomeLabel.Size = UDim2.new(0.5, 0, 0.4, 0)
  75. WelcomeLabel.Font = Enum.Font.SourceSansBold
  76. WelcomeLabel.Text = "Welcome Home, "..game.Players.LocalPlayer.DisplayName
  77. WelcomeLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. WelcomeLabel.TextXAlignment = Enum.TextXAlignment.Left
  79. WelcomeLabel.TextYAlignment = Enum.TextYAlignment.Top
  80. WelcomeLabel.TextWrapped = true
  81. WelcomeLabel.TextSize = 25
  82.  
  83. GameFrameBackground.Name = "GameFrameBackground"
  84. GameFrameBackground.Parent = UIGui
  85. GameFrameBackground.Position = UDim2.new(0.25, 0, 0.3, 0)
  86. GameFrameBackground.Size = UDim2.new(0.5, 0, 0.5, 0)
  87. GameFrameBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  88.  
  89. GameFrameBackgroundUICorner.Parent = GameFrameBackground
  90. GameFrameBackgroundUICorner.CornerRadius = UDim.new(0, 12)
  91.  
  92. GameFrame.Name = "GameFrame"
  93. GameFrame.Parent = GameFrameBackground
  94. GameFrame.Position = UDim2.new(0.005, 0, 0.01, 0)
  95. GameFrame.Size = UDim2.new(0.99, 0, 0.985, 0)
  96. GameFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  97. GameFrame.Image = "rbxassetid://16027463995"
  98.  
  99. GameFrameUICorner.Parent = GameFrame
  100. GameFrameUICorner.CornerRadius = UDim.new(0, 12)
  101.  
  102. FPSLabel.Name = "FPSLabel"
  103. FPSLabel.Parent = GameFrame
  104. FPSLabel.Position = UDim2.new(0.01, 0, 0.015, 0)
  105. FPSLabel.Size = UDim2.new(0.35, 0, 0.2, 0)
  106. FPSLabel.Font = Enum.Font.SourceSansBold
  107. FPSLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. FPSLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  109. FPSLabel.TextSize = 25
  110. FPSLabel.BackgroundTransparency = 0.8
  111.  
  112. FPSLabelUICorner.Parent = FPSLabel
  113. FPSLabelUICorner.CornerRadius = UDim.new(0, 12)
  114.  
  115. local function fre()
  116. local fr = tick()
  117. for index = #FPS,1,-1 do
  118. FPS[index + 1] = (FPS[index] >= fr - 1) and FPS[index] or nil
  119. end
  120. FPS[1] = fr
  121. local fps = (tick() - sec >= 1 and #FPS) or (#FPS / (tick() - sec))
  122. fps = math.floor(fps)
  123. FPSLabel.Text = "Fps: "..fps
  124. end
  125. sec = tick()
  126. RenderStepped:Connect(fre)
  127.  
  128. PingLabel.Name = "PingLabel"
  129. PingLabel.Parent = GameFrame
  130. PingLabel.Position = UDim2.new(0.37, 0, 0.015, 0)
  131. PingLabel.Size = UDim2.new(0.62, 0, 0.2, 0)
  132. PingLabel.Font = Enum.Font.SourceSansBold
  133. PingLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  134. PingLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  135. PingLabel.TextSize = 25
  136. PingLabel.BackgroundTransparency = 0.8
  137.  
  138. PingLabelUICorner.Parent = PingLabel
  139. PingLabelUICorner.CornerRadius = UDim.new(0, 12)
  140.  
  141.  
  142. CPULabel.Name = "CPULabel"
  143. CPULabel.Parent = GameFrame
  144. CPULabel.Position = UDim2.new(0.01, 0, 0.265, 0)
  145. CPULabel.Size = UDim2.new(0.62, 0, 0.2, 0)
  146. CPULabel.Font = Enum.Font.SourceSansBold
  147. CPULabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  148. CPULabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  149. CPULabel.TextSize = 25
  150. CPULabel.BackgroundTransparency = 0.8
  151.  
  152. CPUUICorner.Parent = CPULabel
  153. CPUUICorner.CornerRadius = UDim.new(0, 12)
  154.  
  155. GPULabel.Name = "GPULabel"
  156. GPULabel.Parent = GameFrame
  157. GPULabel.Position = UDim2.new(0.64, 0, 0.265, 0)
  158. GPULabel.Size = UDim2.new(0.35, 0, 0.2, 0)
  159. GPULabel.Font = Enum.Font.SourceSansBold
  160. GPULabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  161. GPULabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  162. GPULabel.TextSize = 25
  163. GPULabel.BackgroundTransparency = 0.8
  164.  
  165. GPUUICorner.Parent = GPULabel
  166. GPUUICorner.CornerRadius = UDim.new(0, 12)
  167.  
  168. PlayersInServer.Name = "PlayersInServer"
  169. PlayersInServer.Parent = GameFrame
  170. PlayersInServer.Position = UDim2.new(0.01, 0, 0.78, 0)
  171. PlayersInServer.Size = UDim2.new(0.62, 0, 0.2, 0)
  172. PlayersInServer.Font = Enum.Font.SourceSansBold
  173. PlayersInServer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  174. PlayersInServer.TextColor3 = Color3.fromRGB(255, 255, 255)
  175. PlayersInServer.TextSize = 25
  176. PlayersInServer.BackgroundTransparency = 0.8
  177.  
  178. PlayersInServerUICorner.Parent = PlayersInServer
  179. PlayersInServerUICorner.CornerRadius = UDim.new(0, 12)
  180.  
  181. ServerSize.Name = "ServerSize"
  182. ServerSize.Parent = GameFrame
  183. ServerSize.Position = UDim2.new(0.64, 0, 0.78, 0)
  184. ServerSize.Size = UDim2.new(0.35, 0, 0.2, 0)
  185. ServerSize.Font = Enum.Font.SourceSansBold
  186. ServerSize.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  187. ServerSize.TextColor3 = Color3.fromRGB(255, 255, 255)
  188. ServerSize.TextSize = 25
  189. ServerSize.BackgroundTransparency = 0.8
  190.  
  191. ServerSizeUICorner.Parent = ServerSize
  192. ServerSizeUICorner.CornerRadius = UDim.new(0, 12)
  193.  
  194.  
  195. ServerLive.Name = "ServerLive"
  196. ServerLive.Parent = GameFrame
  197. ServerLive.Position = UDim2.new(0.01, 0, 0.52, 0)
  198. ServerLive.Size = UDim2.new(0.35, 0, 0.2, 0)
  199. ServerLive.Font = Enum.Font.SourceSansBold
  200. ServerLive.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. ServerLive.TextColor3 = Color3.fromRGB(255, 255, 255)
  202. ServerLive.TextSize = 25
  203. ServerLive.BackgroundTransparency = 0.8
  204. ServerLive.TextScaled = true
  205.  
  206. ServerLiveUICorner.Parent = ServerLive
  207. ServerLiveUICorner.CornerRadius = UDim.new(0, 12)
  208.  
  209. Executor.Name = "Executor"
  210. Executor.Parent = GameFrame
  211. Executor.Position = UDim2.new(0.37, 0, 0.52, 0)
  212. Executor.Size = UDim2.new(0.62, 0, 0.2, 0)
  213. Executor.Font = Enum.Font.SourceSansBold
  214. Executor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  215. Executor.TextColor3 = Color3.fromRGB(255, 255, 255)
  216. Executor.TextSize = 25
  217. Executor.BackgroundTransparency = 0.8
  218.  
  219. ExecutorUICorner.Parent = Executor
  220. ExecutorUICorner.CornerRadius = UDim.new(0, 12)
  221.  
  222. spawn(function()
  223. repeat
  224. wait()
  225. local ping = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").Ping:GetValue())
  226. local gpu = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").GPU:GetValue())
  227. local cpu = tonumber(game:GetService("Stats"):FindFirstChild("PerformanceStats").CPU:GetValue())
  228. cpu = math.floor(cpu)
  229. gpu = math.floor(gpu)
  230. ping = math.floor(ping)
  231. PingLabel.Text = "Ping: "..ping
  232. CPULabel.Text = "CPU: "..cpu
  233. GPULabel.Text = "GPU: "..gpu
  234. PlayersInServer.Text = "Players: "..#game.Players:GetPlayers()
  235. ServerSize.Text = "Server Size: "..game.Players.MaxPlayers
  236. ServerLive.Text = "Server Live: "..convertToHMS(time())
  237. Executor.Text = "Executor: "..identifyexecutor()
  238. until PingLabel == nil
  239. end)
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249. 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