SebTDZ

Server Checker

Sep 26th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. -- Instances:
  2. local TrackerList = Instance.new("ScreenGui")
  3. local List = Instance.new("TextLabel")
  4. --Properties:
  5. TrackerList.Name = "TrackerList"
  6. TrackerList.Parent = owner.PlayerGui
  7. TrackerList.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  8.  
  9. List.Name = "List"
  10. List.Parent = TrackerList
  11. List.BackgroundColor3 = Color3.new(1, 1, 1)
  12. List.Position = UDim2.new(0.5, 0, 0, 0)
  13. List.Size = UDim2.new(0.02, 0, 0.02, 0)
  14. List.Font = Enum.Font.SourceSans
  15. List.TextColor3 = Color3.new(0, 0, 0)
  16. List.TextSize = 20
  17. List.TextWrapped = true
  18. List.TextXAlignment = Enum.TextXAlignment.Left
  19. List.TextYAlignment = Enum.TextYAlignment.Top
  20.  
  21. local RunService = game:GetService("RunService")
  22. local ticks = 0
  23. local maxticks = 63
  24. local maxticksPer = 100 / maxticks
  25. RunService.Heartbeat:Connect(function()
  26.     ticks = ticks + 1
  27. end)
  28. while true do
  29.     wait(1)
  30.     List.Text = string.format(math.floor(maxticksPer * ticks)) .. "%"
  31.     ticks = 0
  32. end
Advertisement
Add Comment
Please, Sign In to add comment