Universal Script 📌
1.6k Views
33.6k Executions

Extra Antilag (Open source)

10K executions
Universal Script 📌
NPC_PlayersNoob_Alt
NPC_PlayersNoob_Alt100K executions
2 months ago

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

Make games not lagging.

View Raw
-- Roblox 客户端性能优化与 FPS 提升脚本
-- 目标:降级 Lighting 渲染、强制锁定画质 Level 1,削减 GPU/CPU 负担

local Lighting = game:GetService("Lighting")
local UserSettings = UserSettings():GetService("UserGameSettings")
local RenderingSettings = settings().Rendering

--------------------------------------------------------------------
-- 1. 强制锁死画质等级为 Level 1(忽略并覆盖用户的修改)
--------------------------------------------------------------------
local function lockQualityToLevel1()
    pcall(function()
        RenderingSettings.QualityLevel = Enum.QualityLevel.Level01
        UserSettings.SavedQualityLevel = Enum.SavedQualityLevel.QualityLevel1
    end)
end

-- 立即执行一次画质重置
lockQualityToLevel1()

-- 监听画质变更事件,防止玩家在设置菜单中手动修改画质
UserSettings:GetPropertyChangedSignal("SavedQualityLevel"):Connect(lockQualityToLevel1)
pcall(function()
    RenderingSettings:GetPropertyChangedSignal("QualityLevel"):Connect(lockQualityToLevel1)
end)

--------------------------------------------------------------------
-- 2. Lighting 光照与风格优化
--------------------------------------------------------------------
pcall(function()
    -- 1) 设置光照风格为 Soft (扁平化光照,关闭高阶法线与高精度动态阴影计算)
    Lighting.LightingStyle = Enum.LightingStyle.Soft

    -- 2) 设置光照技术为 Compatibility (兼容/支持模式)
    local success = pcall(function()
        Lighting.Technology = Enum.Technology.Compatibility
    end)
    if not success then
        -- 若引擎或场景限制不支持 Compatibility,退回最省资源的 Voxel (体素光照)
        Lighting.Technology = Enum.Technology.Voxel


Comments

3
Log in to join the conversation. Login
voltex's profile picture
voltexKeyless Creator
Keyless Script Creator Badge
Keyless Script Creator
2 months ago

horrible

2
NPC_PlayersNoob_Alt's profile picture
NPC_PlayersNoob_AltUploader1 month ago

@voltex fr

1
NPC_PlayersNoob_Alt's profile picture
NPC_PlayersNoob_AltUploader2 months ago

Made for fun, right?

1

Tags

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.7k
Bumped 4 hours ago
Script hub
49.8k
12.4k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 9 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
736
221
Approved 16 hours ago
Universal Script 📌
641
2.7k
Approved 16 hours ago