Helgodxdd

AutoCheckPing.lua

Nov 26th, 2021 (edited)
1,074
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.     Don't Edit From Here Unless You Know What You're Doing!
  3. ]]
  4.  
  5. local getping = function()
  6.     return game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  7. end
  8.  
  9. local Attempts = 3
  10.  
  11. spawn(function()
  12.     while wait() do
  13.         pcall(function()
  14.             local newp = getping():match("%d+")
  15.             local av = string.gsub("hello".._G.AveragePing.."hi", "%D", "")
  16.             wait()
  17.             if newp >= av then
  18.                 Attempts = (Attempts - 1)
  19.             else
  20.                 Attempts = 3
  21.             end
  22.             wait(20)
  23.         end)
  24.     end
  25. end)
  26.  
  27.  
  28. local MakeGui = function()
  29.     local newp = getping():match("%d+")
  30.     local ScreenGui = Instance.new("ScreenGui")
  31.     local Main = Instance.new("Frame")
  32.     local TextLabel = Instance.new("TextLabel")
  33.     local TextLabel_2 = Instance.new("TextLabel")
  34.     local Seletions = Instance.new("ScrollingFrame")
  35.     local Classic = Instance.new("TextButton")
  36.     local Pro = Instance.new("TextButton")
  37.     local Freeplay = Instance.new("TextButton")
  38.     local VOID = Instance.new("TextButton")
  39.     local TextButton = Instance.new("TextButton")
  40.     ScreenGui.Parent = game:GetService("CoreGui")
  41.     Main.Name = "Main"
  42.     Main.Parent = ScreenGui
  43.     Main.Active = true
  44.     Main.Draggable = true
  45.     Main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  46.     Main.BackgroundTransparency = 0.450
  47.     Main.Position = UDim2.new(0.414558917, 0, 0.211895913, 0)
  48.     Main.Size = UDim2.new(0, 637, 0, 440)
  49.     TextLabel.Parent = Main
  50.     TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51.     TextLabel.BackgroundTransparency = 1.000
  52.     TextLabel.Position = UDim2.new(0, 0, 0.0181818176, 0)
  53.     TextLabel.Size = UDim2.new(0, 637, 0, 48)
  54.     TextLabel.Font = Enum.Font.SourceSans
  55.     TextLabel.Text = ("Hey! "..game:GetService("Players").LocalPlayer.Name..", Your Ping Seems High ("..newp.."), According To The Script, The Average Ping You Want To Have Is: ".._G.AveragePing)
  56.     TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  57.     TextLabel.TextScaled = true
  58.     TextLabel.TextSize = 14.000
  59.     TextLabel.TextWrapped = true
  60.     TextLabel_2.Parent = Main
  61.     TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62.     TextLabel_2.BackgroundTransparency = 1.000
  63.     TextLabel_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  64.     TextLabel_2.Position = UDim2.new(0.265306115, 0, 0.152272731, 0)
  65.     TextLabel_2.Size = UDim2.new(0, 299, 0, 28)
  66.     TextLabel_2.Font = Enum.Font.SourceSans
  67.     TextLabel_2.Text = "Which Game Mode Do You Want To Teleport To?"
  68.     TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  69.     TextLabel_2.TextScaled = true
  70.     TextLabel_2.TextSize = 14.000
  71.     TextLabel_2.TextWrapped = true
  72.     Seletions.Name = "Seletions"
  73.     Seletions.Parent = Main
  74.     Seletions.Active = true
  75.     Seletions.BackgroundColor3 = Color3.fromRGB(119, 29, 255)
  76.     Seletions.BackgroundTransparency = 0.700
  77.     Seletions.Position = UDim2.new(0.218210354, 0, 0.240909085, 0)
  78.     Seletions.Size = UDim2.new(0, 370, 0, 205)
  79.     Classic.Name = "Classic"
  80.     Classic.Parent = Seletions
  81.     Classic.BackgroundColor3 = Color3.fromRGB(71, 42, 110)
  82.     Classic.BorderColor3 = Color3.fromRGB(255, 255, 0)
  83.     Classic.Position = UDim2.new(0.0194986071, 0, 0.0195439737, 0)
  84.     Classic.Size = UDim2.new(0, 336, 0, 36)
  85.     Classic.Font = Enum.Font.SourceSans
  86.     Classic.Text = "Classic"
  87.     Classic.TextColor3 = Color3.fromRGB(255, 255, 255)
  88.     Classic.TextScaled = true
  89.     Classic.TextSize = 14.000
  90.     Classic.TextWrapped = true
  91.     Pro.Name = "Pro"
  92.     Pro.Parent = Seletions
  93.     Pro.BackgroundColor3 = Color3.fromRGB(71, 42, 110)
  94.     Pro.BorderColor3 = Color3.fromRGB(255, 255, 0)
  95.     Pro.Position = UDim2.new(0.0194986071, 0, 0.0825071707, 0)
  96.     Pro.Size = UDim2.new(0, 336, 0, 50)
  97.     Pro.Font = Enum.Font.SourceSans
  98.     Pro.Text = "Pro"
  99.     Pro.TextColor3 = Color3.fromRGB(255, 255, 255)
  100.     Pro.TextScaled = true
  101.     Pro.TextSize = 14.000
  102.     Pro.TextWrapped = true
  103.     Freeplay.Name = "Freeplay"
  104.     Freeplay.Parent = Seletions
  105.     Freeplay.BackgroundColor3 = Color3.fromRGB(71, 42, 110)
  106.     Freeplay.BorderColor3 = Color3.fromRGB(255, 255, 0)
  107.     Freeplay.Position = UDim2.new(0.0194986071, 0, 0.159916833, 0)
  108.     Freeplay.Size = UDim2.new(0, 336, 0, 50)
  109.     Freeplay.Font = Enum.Font.SourceSans
  110.     Freeplay.Text = "Freeplay"
  111.     Freeplay.TextColor3 = Color3.fromRGB(255, 255, 255)
  112.     Freeplay.TextScaled = true
  113.     Freeplay.TextSize = 14.000
  114.     Freeplay.TextWrapped = true
  115.     VOID.Name = "VOID"
  116.     VOID.Parent = Main
  117.     VOID.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118.     VOID.BackgroundTransparency = 1.000
  119.     VOID.Position = UDim2.new(0, 0, 0.938636363, 0)
  120.     VOID.Size = UDim2.new(0, 113, 0, 27)
  121.     VOID.Font = Enum.Font.SourceSans
  122.     VOID.Text = "Void"
  123.     VOID.TextColor3 = Color3.fromRGB(255, 0, 0)
  124.     VOID.TextScaled = true
  125.     VOID.TextSize = 14.000
  126.     VOID.TextWrapped = true
  127.     TextButton.Parent = Main
  128.     TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129.     TextButton.BackgroundTransparency = 1.000
  130.     TextButton.Position = UDim2.new(0.662480354, 0, 0.938636363, 0)
  131.     TextButton.Size = UDim2.new(0, 215, 0, 27)
  132.     TextButton.Font = Enum.Font.SourceSans
  133.     TextButton.Text = "Check Ping Again in 5 minutes"
  134.     TextButton.TextColor3 = Color3.fromRGB(85, 255, 0)
  135.     TextButton.TextScaled = true
  136.     TextButton.TextSize = 14.000
  137.     TextButton.TextWrapped = true
  138.     local function UWXPY_fake_script()
  139.         local script = Instance.new('LocalScript', Classic)
  140.         script.Parent.MouseButton1Click:Connect(function()
  141.             game:GetService("TeleportService"):Teleport(379614936)
  142.         end)
  143.     end
  144.     coroutine.wrap(UWXPY_fake_script)()
  145.     local function QYILMQ_fake_script()
  146.         local script = Instance.new('LocalScript', Pro)
  147.         script.Parent.MouseButton1Click:Connect(function()
  148.             game:GetService("TeleportService"):Teleport(860428890)
  149.         end)
  150.     end
  151.     coroutine.wrap(QYILMQ_fake_script)()
  152.     local function YUMK_fake_script()
  153.         local script = Instance.new('LocalScript', Freeplay)
  154.         script.Parent.MouseButton1Click:Connect(function()
  155.             game:GetService("TeleportService"):Teleport(5006801542)
  156.         end)
  157.     end
  158.     coroutine.wrap(YUMK_fake_script)()
  159.     local function ODTJI_fake_script()
  160.         local script = Instance.new('LocalScript', VOID)
  161.         script.Parent.MouseButton1Click:Connect(function()
  162.             ScreenGui:Destroy()
  163.         end)
  164.     end
  165.     coroutine.wrap(ODTJI_fake_script)()
  166.     local function EBXZYH_fake_script()
  167.         local script = Instance.new('LocalScript', TextButton)
  168.         script.Parent.MouseButton1Click:Connect(function()
  169.             ScreenGui.Enabled = false
  170.             spawn(function()
  171.                 while wait() do
  172.                     pcall(function()
  173.                         wait(290)
  174.                         loadstring(game:HttpGet("https://pastebin.com/raw/RCey4ezh"))();
  175.                         wait()
  176.                         ScreenGui:Destroy()
  177.                     end)
  178.                 end
  179.             end)
  180.         end)
  181.     end
  182.     coroutine.wrap(EBXZYH_fake_script)()
  183. end
  184.  
  185. local ready = false
  186. while wait() do
  187.     pcall(function()
  188.         if Attempts == 0 then
  189.             MakeGui()
  190.             ready = true
  191.         end
  192.     end)
  193.     if ready == true then
  194.         break
  195.     end
  196. end
RAW Paste Data