Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local _1 = Instance.new("ImageLabel")
- local _2 = Instance.new("ImageLabel")
- local _3 = Instance.new("ImageLabel")
- local _4 = Instance.new("ImageLabel")
- local _5 = Instance.new("ImageLabel")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Position = UDim2.new(0, 0, 0.87714988, 0)
- Frame.Size = UDim2.new(0, 100, 0, 100)
- _1.Name = "1"
- _1.Parent = Frame
- _1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- _1.BackgroundTransparency = 1.000
- _1.Size = UDim2.new(0, 100, 0, 100)
- _1.Visible = false
- _1.Image = "http://www.roblox.com/asset/?id=5441875427"
- _2.Name = "2"
- _2.Parent = Frame
- _2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- _2.BackgroundTransparency = 1.000
- _2.Size = UDim2.new(0, 100, 0, 100)
- _2.Visible = false
- _2.Image = "http://www.roblox.com/asset/?id=5441875094"
- _3.Name = "3"
- _3.Parent = Frame
- _3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- _3.BackgroundTransparency = 1.000
- _3.Size = UDim2.new(0, 100, 0, 100)
- _3.Visible = false
- _3.Image = "http://www.roblox.com/asset/?id=5441874722"
- _4.Name = "4"
- _4.Parent = Frame
- _4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- _4.BackgroundTransparency = 1.000
- _4.Size = UDim2.new(0, 100, 0, 100)
- _4.Visible = false
- _4.Image = "http://www.roblox.com/asset/?id=5441874441"
- _5.Name = "5"
- _5.Parent = Frame
- _5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- _5.BackgroundTransparency = 1.000
- _5.Size = UDim2.new(0, 100, 0, 100)
- _5.Visible = false
- _5.Image = "http://www.roblox.com/asset/?id=5441874121"
- function MakeVis(Number)
- for i,v in pairs(ScreenGui.Frame:GetChildren()) do
- if v.Name == tostring(Number) then
- v.Visible = true
- else
- v.Visible = false
- end
- end
- end
- while game.RunService.RenderStepped:wait() do
- local Ping = tostring(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString())
- Ping = tonumber(Ping:sub(1, -9))
- if Ping < 30 then
- MakeVis(5)
- elseif Ping >= 30 and Ping < 50 then
- MakeVis(4)
- elseif Ping >= 50 and Ping < 100 then
- MakeVis(3)
- elseif Ping >= 100 and Ping < 250 then
- MakeVis(2)
- elseif Ping >= 250 then
- MakeVis(1)
- end
- game.ReplicatedStorage.Notices.SendUserNotice:Fire(game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement