Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Anti-Lag The Strongest Battlegrounds - Versão v0.1
- --// Autor: VitorLZX
- --// Remove texturas e efeitos pesados, deixa o jogo mais leve e sem bug no personagem
- local Players = game:GetService("Players")
- local Lighting = game:GetService("Lighting")
- local LocalPlayer = Players.LocalPlayer
- -- Mensagem "Versão v0.1" tela inteira por 3 segundos
- local ScreenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
- local TextLabel = Instance.new("TextLabel", ScreenGui)
- TextLabel.Size = UDim2.new(1,0,1,0)
- TextLabel.Text = "Versão v0.1"
- TextLabel.BackgroundTransparency = 1
- TextLabel.TextScaled = true
- TextLabel.Font = Enum.Font.GothamBlack
- -- Efeito arco-íris no texto
- task.spawn(function()
- local hue = 0
- while ScreenGui.Parent do
- hue = (hue + 2) % 360
- TextLabel.TextColor3 = Color3.fromHSV(hue/360, 1, 1)
- task.wait(0.05)
- end
- end)
- -- Espera 3 segundos e executa o Anti-Lag
- task.delay(3, function()
- ScreenGui:Destroy()
- -- Função de remoção
- local function clearObj(obj)
- if obj:IsA("ParticleEmitter") or obj:IsA("Trail") or obj:IsA("Smoke") or obj:IsA("Explosion") or obj:IsA("Fire") then
- obj:Destroy()
- elseif obj:IsA("Decal") or obj:IsA("Texture") then
- if not obj:IsDescendantOf(LocalPlayer.Character) then
- obj:Destroy()
- end
- elseif obj.Name:lower():match("debris") or obj.Name:lower():match("rock") or obj.Name:lower():match("crater") then
- if not obj:IsDescendantOf(LocalPlayer.Character) then
- obj:Destroy()
- end
- end
- end
- -- Limpeza inicial
- for _, obj in ipairs(workspace:GetDescendants()) do
- if not obj:IsDescendantOf(LocalPlayer.Character) then
- clearObj(obj)
- end
- end
- -- Terreno invisível
- if workspace:FindFirstChildOfClass("Terrain") then
- workspace.Terrain:Clear()
- end
- -- Iluminação super leve
- Lighting.GlobalShadows = false
- Lighting.FogEnd = 1e10
- Lighting.Brightness = 1
- Lighting.ClockTime = 14
- Lighting.FogStart = 0
- Lighting.OutdoorAmbient = Color3.fromRGB(128,128,128)
- -- Remove céu
- for _, v in ipairs(Lighting:GetChildren()) do
- if v:IsA("Sky") then v:Destroy() end
- end
- -- Deixa tudo SmoothPlastic (exceto personagem)
- for _, part in ipairs(workspace:GetDescendants()) do
- if part:IsA("BasePart") and not part:IsDescendantOf(LocalPlayer.Character) then
- part.Material = Enum.Material.SmoothPlastic
- part.Reflectance = 0
- end
- end
- -- Bloqueia novos efeitos/pedras/texturas (sem afetar player)
- workspace.DescendantAdded:Connect(function(obj)
- if not obj:IsDescendantOf(LocalPlayer.Character) then
- clearObj(obj)
- if obj:IsA("BasePart") then
- obj.Material = Enum.Material.SmoothPlastic
- obj.Reflectance = 0
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment