Advertisement
StenHisDirt

Untitled

Jul 28th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1.  
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local _1 = Instance.new("ImageLabel")
  5. local _2 = Instance.new("ImageLabel")
  6. local _3 = Instance.new("ImageLabel")
  7. local _4 = Instance.new("ImageLabel")
  8. local _5 = Instance.new("ImageLabel")
  9.  
  10. ScreenGui.Parent = game.CoreGui
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. Frame.Parent = ScreenGui
  14. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. Frame.BackgroundTransparency = 1.000
  16. Frame.Position = UDim2.new(0, 0, 0.87714988, 0)
  17. Frame.Size = UDim2.new(0, 100, 0, 100)
  18.  
  19. _1.Name = "1"
  20. _1.Parent = Frame
  21. _1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  22. _1.BackgroundTransparency = 1.000
  23. _1.Size = UDim2.new(0, 100, 0, 100)
  24. _1.Visible = false
  25. _1.Image = "http://www.roblox.com/asset/?id=5441875427"
  26.  
  27. _2.Name = "2"
  28. _2.Parent = Frame
  29. _2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. _2.BackgroundTransparency = 1.000
  31. _2.Size = UDim2.new(0, 100, 0, 100)
  32. _2.Visible = false
  33. _2.Image = "http://www.roblox.com/asset/?id=5441875094"
  34.  
  35. _3.Name = "3"
  36. _3.Parent = Frame
  37. _3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. _3.BackgroundTransparency = 1.000
  39. _3.Size = UDim2.new(0, 100, 0, 100)
  40. _3.Visible = false
  41. _3.Image = "http://www.roblox.com/asset/?id=5441874722"
  42.  
  43. _4.Name = "4"
  44. _4.Parent = Frame
  45. _4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  46. _4.BackgroundTransparency = 1.000
  47. _4.Size = UDim2.new(0, 100, 0, 100)
  48. _4.Visible = false
  49. _4.Image = "http://www.roblox.com/asset/?id=5441874441"
  50.  
  51. _5.Name = "5"
  52. _5.Parent = Frame
  53. _5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. _5.BackgroundTransparency = 1.000
  55. _5.Size = UDim2.new(0, 100, 0, 100)
  56. _5.Visible = false
  57. _5.Image = "http://www.roblox.com/asset/?id=5441874121"
  58.  
  59. function MakeVis(Number)
  60. for i,v in pairs(ScreenGui.Frame:GetChildren()) do
  61. if v.Name == tostring(Number) then
  62. v.Visible = true
  63. else
  64. v.Visible = false
  65. end
  66. end
  67. end
  68. while game.RunService.RenderStepped:wait() do
  69. local Ping = tostring(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString())
  70. Ping = tonumber(Ping:sub(1, -9))
  71. if Ping < 30 then
  72. MakeVis(5)
  73. elseif Ping >= 30 and Ping < 50 then
  74. MakeVis(4)
  75. elseif Ping >= 50 and Ping < 100 then
  76. MakeVis(3)
  77. elseif Ping >= 100 and Ping < 250 then
  78. MakeVis(2)
  79. elseif Ping >= 250 then
  80. MakeVis(1)
  81. end
  82. game.ReplicatedStorage.Notices.SendUserNotice:Fire(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString())
  83. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement