Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Anti Lag, Synapse X Edition by iiDk
- local AntiLagbyiiDk = Instance.new("ScreenGui")
- local gameld = Instance.new("TextLabel")
- local final = Instance.new("TextLabel")
- local level = Instance.new("TextLabel")
- local switch = Instance.new("TextLabel")
- local load = Instance.new("NumberValue")
- --Properties:
- load.Value = _G.loadTime
- load.Name = "LoadTime"
- load.Parent = AntiLagbyiiDk
- AntiLagbyiiDk.Name = "Anti Lag by iiDk"
- AntiLagbyiiDk.Parent = game.Players.LocalPlayer.PlayerGui
- AntiLagbyiiDk.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- AntiLagbyiiDk.ResetOnSpawn = false
- gameld.Name = "game"
- gameld.Parent = AntiLagbyiiDk
- gameld.BackgroundColor3 = Color3.new(1, 1, 1)
- gameld.BackgroundTransparency = 1
- gameld.BorderSizePixel = 0
- gameld.Position = UDim2.new(0.68342644, 0, 0, 0)
- gameld.Size = UDim2.new(0, 340, 0, 50)
- gameld.Font = Enum.Font.SourceSansItalic
- gameld.Text = "Game: Unknown"
- gameld.TextColor3 = Color3.new(1, 1, 1)
- gameld.TextScaled = true
- gameld.TextSize = 14
- gameld.TextStrokeTransparency = 0
- gameld.TextWrapped = true
- final.Name = "final"
- final.Parent = AntiLagbyiiDk
- final.BackgroundColor3 = Color3.new(1, 1, 1)
- final.BackgroundTransparency = 1
- final.BorderSizePixel = 0
- final.Position = UDim2.new(0.68342644, 0, 0.0788643509, 0)
- final.Size = UDim2.new(0, 340, 0, 50)
- final.Font = Enum.Font.SourceSansItalic
- final.Text = "Final Product: Unknown"
- final.TextColor3 = Color3.new(1, 1, 1)
- final.TextScaled = true
- final.TextSize = 14
- final.TextStrokeTransparency = 0
- final.TextWrapped = true
- level.Name = "level"
- level.Parent = AntiLagbyiiDk
- level.BackgroundColor3 = Color3.new(1, 1, 1)
- level.BackgroundTransparency = 1
- level.BorderSizePixel = 0
- level.Position = UDim2.new(0.68342644, 0, 0.157728702, 0)
- level.Size = UDim2.new(0, 340, 0, 50)
- level.Font = Enum.Font.SourceSansItalic
- level.Text = "Lag Level: Unknown"
- level.TextColor3 = Color3.new(1, 1, 1)
- level.TextScaled = true
- level.TextSize = 14
- level.TextStrokeTransparency = 0
- level.TextWrapped = true
- switch.Name = "switch"
- switch.Parent = AntiLagbyiiDk
- switch.BackgroundColor3 = Color3.new(1, 1, 1)
- switch.BackgroundTransparency = 1
- switch.BorderSizePixel = 0
- switch.Size = UDim2.new(0, 1074, 0, 634)
- switch.Visible = false
- switch.Font = Enum.Font.SourceSansItalic
- switch.Text = "Switching servers in 10 seconds! Save what you can."
- switch.TextColor3 = Color3.new(1, 0, 0.0156863)
- switch.TextScaled = true
- switch.TextSize = 14
- switch.TextStrokeColor3 = Color3.new(0.670588, 0, 0.00784314)
- switch.TextStrokeTransparency = 0
- switch.TextWrapped = true
- -- Scripts:
- local function PQKUI_fake_script() -- AntiLagbyiiDk.Script
- local script = Instance.new('Script', AntiLagbyiiDk)
- --Load Game
- wait(script.Parent.LoadTime.Value)
- while true do
- -- Do not Change
- local place = game.GameId
- local TeleportService = game:GetService("TeleportService")
- -- Settings
- local default = "unknown" -- Default Lag Level
- local waittime = 1 -- Wait time for lag.
- -- Lag Finder
- local laglevel = default -- Lag Level, Tiny to Medium
- print("Game: "..place)
- local one = elapsedTime()
- wait()
- local two = elapsedTime()
- local final = two - one
- print(final)
- -- Lag Estimator
- if final > 0.03 then
- laglevel = "Tiny Lag"
- else
- if final > 0.06 then
- laglevel = "Small Lag"
- else
- if final > 0.09 then
- laglevel = "Medium Small Lag"
- else
- if final > 0.12 then
- laglevel = "Medium Lag"
- end
- end
- end
- end
- print(laglevel)
- -- Auto Game Switcher
- if final > 0.063 then
- print("Lag level too high, switching servers...")
- -- Switch Server script here
- script.Parent.switch.Visible = true
- wait(10)
- TeleportService:Teleport(place, owner)
- -- to here.
- else
- print("Lag level is fine.")
- end
- -- Edit GUI
- script.Parent.game.Text = "Game: "..place
- script.Parent.final.Text = "Final Product: "..final
- script.Parent.level.Text = "Lag Level: "..laglevel
- -- End
- laglevel = default
- wait(waittime)
- end
- end
- coroutine.wrap(PQKUI_fake_script)()
- local function SHXU_fake_script() -- AntiLagbyiiDk.LocalScript
- local script = Instance.new('LocalScript', AntiLagbyiiDk)
- local first1 = elapsedTime()
- wait(script.Parent.LoadTime.Value)
- local first2 = elapsedTime()
- game.StarterGui:SetCore("SendNotification", {
- Title = "Anti Lag"; -- the title (ofc)
- Text = "Anti Lag loaded in "..first2 - first1.." seconds."; -- what the text says (ofc)
- Icon = ""; -- the image if u want.
- Duration = 5; -- how long the notification should in secounds
- })
- if (first2 - first1) > 0
- wait(1)
- game.StarterGui:SetCore("SendNotification", {
- Title = "Anti Lag"; -- the title (ofc)
- Text = "It took "..(first2 - first1) - script.Parent.LoadTime.Value.." seconds longer than it should've."; -- what the text says (ofc)
- Icon = ""; -- the image if u want.
- Duration = 5; -- how long the notification should in secounds
- })
- end
- coroutine.wrap(SHXU_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement