VitorLZX

Script anti lag tsb v0.1

Aug 20th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | Gaming | 0 0
  1. --// Anti-Lag The Strongest Battlegrounds - Versão v0.1
  2. --// Autor: VitorLZX
  3. --// Remove texturas e efeitos pesados, deixa o jogo mais leve e sem bug no personagem
  4.  
  5. local Players = game:GetService("Players")
  6. local Lighting = game:GetService("Lighting")
  7. local LocalPlayer = Players.LocalPlayer
  8.  
  9. -- Mensagem "Versão v0.1" tela inteira por 3 segundos
  10. local ScreenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
  11. local TextLabel = Instance.new("TextLabel", ScreenGui)
  12. TextLabel.Size = UDim2.new(1,0,1,0)
  13. TextLabel.Text = "Versão v0.1"
  14. TextLabel.BackgroundTransparency = 1
  15. TextLabel.TextScaled = true
  16. TextLabel.Font = Enum.Font.GothamBlack
  17.  
  18. -- Efeito arco-íris no texto
  19. task.spawn(function()
  20. local hue = 0
  21. while ScreenGui.Parent do
  22. hue = (hue + 2) % 360
  23. TextLabel.TextColor3 = Color3.fromHSV(hue/360, 1, 1)
  24. task.wait(0.05)
  25. end
  26. end)
  27.  
  28. -- Espera 3 segundos e executa o Anti-Lag
  29. task.delay(3, function()
  30. ScreenGui:Destroy()
  31.  
  32. -- Função de remoção
  33. local function clearObj(obj)
  34. if obj:IsA("ParticleEmitter") or obj:IsA("Trail") or obj:IsA("Smoke") or obj:IsA("Explosion") or obj:IsA("Fire") then
  35. obj:Destroy()
  36. elseif obj:IsA("Decal") or obj:IsA("Texture") then
  37. if not obj:IsDescendantOf(LocalPlayer.Character) then
  38. obj:Destroy()
  39. end
  40. elseif obj.Name:lower():match("debris") or obj.Name:lower():match("rock") or obj.Name:lower():match("crater") then
  41. if not obj:IsDescendantOf(LocalPlayer.Character) then
  42. obj:Destroy()
  43. end
  44. end
  45. end
  46.  
  47. -- Limpeza inicial
  48. for _, obj in ipairs(workspace:GetDescendants()) do
  49. if not obj:IsDescendantOf(LocalPlayer.Character) then
  50. clearObj(obj)
  51. end
  52. end
  53.  
  54. -- Terreno invisível
  55. if workspace:FindFirstChildOfClass("Terrain") then
  56. workspace.Terrain:Clear()
  57. end
  58.  
  59. -- Iluminação super leve
  60. Lighting.GlobalShadows = false
  61. Lighting.FogEnd = 1e10
  62. Lighting.Brightness = 1
  63. Lighting.ClockTime = 14
  64. Lighting.FogStart = 0
  65. Lighting.OutdoorAmbient = Color3.fromRGB(128,128,128)
  66.  
  67. -- Remove céu
  68. for _, v in ipairs(Lighting:GetChildren()) do
  69. if v:IsA("Sky") then v:Destroy() end
  70. end
  71.  
  72. -- Deixa tudo SmoothPlastic (exceto personagem)
  73. for _, part in ipairs(workspace:GetDescendants()) do
  74. if part:IsA("BasePart") and not part:IsDescendantOf(LocalPlayer.Character) then
  75. part.Material = Enum.Material.SmoothPlastic
  76. part.Reflectance = 0
  77. end
  78. end
  79.  
  80. -- Bloqueia novos efeitos/pedras/texturas (sem afetar player)
  81. workspace.DescendantAdded:Connect(function(obj)
  82. if not obj:IsDescendantOf(LocalPlayer.Character) then
  83. clearObj(obj)
  84. if obj:IsA("BasePart") then
  85. obj.Material = Enum.Material.SmoothPlastic
  86. obj.Reflectance = 0
  87. end
  88. end
  89. end)
  90. end)
Tags: game
Advertisement
Add Comment
Please, Sign In to add comment