Universal Script 📌
2.5k Views
14.7k Executions

Anti Lag Script Open Source

10K executions
Universal Script 📌
v3gas
v3gas10K executions
9 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

A classic anti lag script that you can use in your scripts

View Raw
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local StarterGui = game:GetService("StarterGui")
local CoreGui = game:GetService("CoreGui")
local LocalPlayer = Players.LocalPlayer or Players.PlayerAdded:Wait()

if not game:IsLoaded() then
    game.Loaded:Wait()
end

local sharedEnv = (type(getgenv) == "function" and getgenv()) or _G
if type(sharedEnv.__UNIVERSAL_ANTILAG_UI_CLEANUP) == "function" then
    pcall(sharedEnv.__UNIVERSAL_ANTILAG_UI_CLEANUP)
end

local runtimeConnections = {}
local changedProperties = {}
local antiLagEnabled = false
local descendantConnection
local gui

local oldQualityLevel
local oldSavedQualityLevel

local function addConnection(conn)
    table.insert(runtimeConnections, conn)
    return conn
end

local function disconnectConnection(conn)
    if conn then
        pcall(function()
            conn:Disconnect()
        end)
    end
end

local function safeGet(instance, propertyName)
    local ok, value = pcall(function()
        return instance[propertyName]


Comments

2
Log in to join the conversation. Login
Isuckatbloxfeets's profile picture
Isuckatbloxfeets8 months ago

I love you

1
Iias82's profile picture
Iias829 months ago

yo its really cool! work properly. gives me 98+ fpc

1

More universal scripts

See all
Script hub
194
1.1k
Bumped 4 minutes ago
Universal Script 📌
8.3k
119.0k
Bumped 27 minutes ago
Script hub
9
0
Approved 35 minutes ago
Key System

Script hub

Lz Hub [Beta]

Script hub
479
9.4k
Bumped 55 minutes ago
Key System

Script hub

Friedpotato Hub

Script hub
17
0
Approved 1 hour ago