Advertisement
Azzz_4565

Untitled

Jun 24th, 2025
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 7.21 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local Lighting = game:GetService("Lighting")
  5. local Workspace = game:GetService("Workspace")
  6. local Stats = game:GetService("Stats")
  7.  
  8. local LocalPlayer = Players.LocalPlayer
  9. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  10.  
  11. -- ๐ŸŒŒ SKYBOX Setup (unchanged)
  12. Lighting.FogEnd = 1e9
  13. Lighting.Brightness = 3
  14. Lighting.GlobalShadows = false
  15. Lighting.ClockTime = 14
  16. Lighting.OutdoorAmbient = Color3.fromRGB(20, 30, 60)
  17. Lighting.Ambient = Color3.fromRGB(40, 50, 90)
  18.  
  19. for _, v in pairs(Lighting:GetChildren()) do
  20.     if v:IsA("Sky") then v:Destroy() end
  21. end
  22.  
  23. local sky = Instance.new("Sky", Lighting)
  24. local galaxyId = "rbxassetid://1234567890"
  25. sky.SkyboxBk = galaxyId
  26. sky.SkyboxDn = galaxyId
  27. sky.SkyboxFt = galaxyId
  28. sky.SkyboxLf = galaxyId
  29. sky.SkyboxRt = galaxyId
  30. sky.SkyboxUp = galaxyId
  31.  
  32. -- ๐Ÿšฟ STRONG CLEAN FUNCTION (100x stronger version)
  33. local function strongClean(char)
  34.     for _, obj in ipairs(Workspace:GetDescendants()) do
  35.         if (obj:IsA("ParticleEmitter") or obj:IsA("Trail") or obj:IsA("Smoke") or
  36.             obj:IsA("Fire") or obj:IsA("Sparkles") or obj:IsA("Beam") or
  37.             obj:IsA("PointLight") or obj:IsA("SurfaceLight") or obj:IsA("SpotLight") or
  38.             obj:IsA("Sound") or obj:IsA("MeshPart") or obj:IsA("Decal") or
  39.             obj:IsA("Texture") or obj:IsA("Explosion") or obj:IsA("ShirtGraphic") or
  40.             obj:IsA("Fire") or obj:IsA("ParticleEmitter") or obj:IsA("Smoke")) and
  41.             (not char or not obj:IsDescendantOf(char)) then
  42.             pcall(function() obj:Destroy() end)
  43.         end
  44.     end
  45.  
  46.     for _, effect in pairs(Lighting:GetChildren()) do
  47.         if effect:IsA("PostEffect") or effect:IsA("ColorCorrectionEffect") or
  48.             effect:IsA("BlurEffect") or effect:IsA("BloomEffect") or
  49.             effect:IsA("SunRaysEffect") then
  50.             pcall(function() effect:Destroy() end)
  51.         end
  52.     end
  53.  
  54.     Lighting.GlobalShadows = false
  55.     Lighting.FogEnd = 1e10
  56.     Lighting.Brightness = 1
  57. end
  58.  
  59. -- ๐Ÿงผ CLEAN PLAYER CHARACTER (unchanged)
  60. local function cleanChar(char)
  61.     if not char then return end
  62.     for _, v in pairs(char:GetDescendants()) do
  63.         if v:IsA("ParticleEmitter") or v:IsA("Trail") or v:IsA("Smoke") or
  64.            v:IsA("Fire") or v:IsA("Sparkles") or v:IsA("Sound") then
  65.             pcall(function() v:Destroy() end)
  66.         end
  67.     end
  68. end
  69.  
  70. -- ๐Ÿ”ง TOOL AUTO-EQUIP (unchanged)
  71. local toolEquipCooldown = false
  72. local function grabTools()
  73.     if toolEquipCooldown then return end
  74.     toolEquipCooldown = true
  75.     task.spawn(function()
  76.         for _, tool in ipairs(LocalPlayer.Backpack:GetChildren()) do
  77.             if tool:IsA("Tool") then
  78.                 pcall(function()
  79.                     LocalPlayer.Character:WaitForChild("Humanoid"):EquipTool(tool)
  80.                 end)
  81.             end
  82.         end
  83.         task.wait(1)
  84.         toolEquipCooldown = false
  85.     end)
  86. end
  87.  
  88. -- ๐Ÿง ON CHARACTER LOAD (unchanged)
  89. local function onCharacterAdded(char)
  90.     task.wait(0.05)
  91.     strongClean(char)
  92.     cleanChar(char)
  93.     task.wait(0.1)
  94.     grabTools()
  95. end
  96.  
  97. LocalPlayer.CharacterAdded:Connect(onCharacterAdded)
  98. onCharacterAdded(Character)
  99.  
  100. -- ๐ŸŒŠ TERRAIN TWEAK (unchanged)
  101. pcall(function()
  102.     Workspace.Terrain.WaterWaveSize = 0
  103.     Workspace.Terrain.WaterTransparency = 1
  104.     Workspace.Terrain.WaterReflectance = 0
  105.     Workspace.Terrain.WaterColor = Color3.new(0, 0, 0)
  106. end)
  107.  
  108. -- ๐Ÿง  AUTO-CLEANER WITH MASSIVE BOOST (much stronger version)
  109. local lagStrikes = 0
  110. local lagCooldown = false
  111.  
  112. local function megaClean()
  113.     -- Run the strongClean and cleanChar multiple times rapidly for massive lag clearing
  114.     for i = 1, 10 do
  115.         strongClean(LocalPlayer.Character)
  116.         cleanChar(LocalPlayer.Character)
  117.         task.wait(0.05)
  118.     end
  119. end
  120.  
  121. RunService.Heartbeat:Connect(function(dt)
  122.     if lagCooldown then return end
  123.     local fps = 1 / dt
  124.     local mem = Stats:GetTotalMemoryUsageMb()
  125.  
  126.     if fps < 30 or mem > 250 then
  127.         lagStrikes += 1
  128.         if lagStrikes >= 1 then  -- trigger quicker
  129.             lagCooldown = true
  130.             -- Massive cleaning burst
  131.             task.spawn(megaClean)
  132.             grabTools()
  133.  
  134.             -- Set minimal graphics for max FPS boost
  135.             Lighting.FogEnd = 1e11
  136.             Lighting.Brightness = 0.5
  137.             Lighting.GlobalShadows = false
  138.  
  139.             -- Restore settings after 15 seconds
  140.             task.delay(15, function()
  141.                 Lighting.FogEnd = 1e9
  142.                 Lighting.Brightness = 3
  143.                 Lighting.GlobalShadows = false
  144.                 lagCooldown = false
  145.             end)
  146.  
  147.             lagStrikes = 0
  148.         end
  149.     else
  150.         lagStrikes = 0
  151.     end
  152. end)
  153.  
  154. -- ๐Ÿ“Š FPS DISPLAY - PSYCHO HA STYLE (unchanged)
  155. local playerGui = LocalPlayer:WaitForChild("PlayerGui")
  156. local screenGui = Instance.new("ScreenGui")
  157. screenGui.Name = "FPSCounter"
  158. screenGui.ResetOnSpawn = false
  159. screenGui.IgnoreGuiInset = true
  160. screenGui.Parent = playerGui
  161.  
  162. local fpsLabel = Instance.new("TextLabel")
  163. fpsLabel.Name = "FPSDisplay"
  164. fpsLabel.Size = UDim2.new(0, 140, 0, 36)
  165. fpsLabel.Position = UDim2.new(0, 15, 1, -50)
  166. fpsLabel.BackgroundColor3 = Color3.fromRGB(10, 10, 25)
  167. fpsLabel.BorderSizePixel = 2
  168. fpsLabel.BorderColor3 = Color3.fromRGB(255, 215, 0)
  169. fpsLabel.Text = "FPS: --"
  170. fpsLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  171. fpsLabel.Font = Enum.Font.SourceSansBold
  172. fpsLabel.TextScaled = true
  173. fpsLabel.Parent = screenGui
  174.  
  175. local corner = Instance.new("UICorner", fpsLabel)
  176. corner.CornerRadius = UDim.new(0, 6)
  177.  
  178. local stroke = Instance.new("UIStroke", fpsLabel)
  179. stroke.Thickness = 2
  180. stroke.Color = Color3.fromRGB(184, 134, 11)
  181.  
  182. -- ๐Ÿ˜‚๐Ÿ’€ ROTATING EMOJI beside FPS text (unchanged)
  183. local emoji = Instance.new("TextLabel")
  184. emoji.Name = "FPSFace"
  185. emoji.Size = UDim2.new(0, 36, 0, 36)
  186. emoji.Position = UDim2.new(0, 155, 1, -50)
  187. emoji.BackgroundTransparency = 1
  188. emoji.Text = "๐Ÿ˜‚"
  189. emoji.TextScaled = true
  190. emoji.Font = Enum.Font.SourceSansBold
  191. emoji.TextColor3 = Color3.fromRGB(0, 255, 0)
  192. emoji.Parent = screenGui
  193.  
  194. local rotation = 0
  195. RunService.RenderStepped:Connect(function()
  196.     rotation += 3
  197.     emoji.Rotation = rotation % 360
  198. end)
  199.  
  200. -- ๐ŸŽฏ LIVE FPS UPDATER with emoji color & text changes
  201. local frames = 0
  202. local lastTime = tick()
  203.  
  204. RunService.RenderStepped:Connect(function()
  205.     frames += 1
  206.     if tick() - lastTime >= 1 then
  207.         local fps = frames
  208.         fpsLabel.Text = "FPS: " .. fps
  209.  
  210.         if fps >= 30 then
  211.             fpsLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  212.             emoji.Text = "๐Ÿ˜‚"
  213.             emoji.TextColor3 = Color3.fromRGB(0, 255, 0)
  214.         elseif fps >= 15 then
  215.             fpsLabel.TextColor3 = Color3.fromRGB(255, 170, 0)
  216.             emoji.Text = "๐Ÿ’€"
  217.             emoji.TextColor3 = Color3.fromRGB(255, 170, 0)
  218.         else
  219.             fpsLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  220.             emoji.Text = "๐Ÿ’€"
  221.             emoji.TextColor3 = Color3.fromRGB(255, 0, 0)
  222.         end
  223.  
  224.         frames = 0
  225.         lastTime = tick()
  226.     end
  227. end)
  228.  
  229. print("[๐Ÿ›ก๏ธ] Psycho Anti-Lag Loaded: 100x Stronger | FPS UI Themed | Safe + Compatible")
  230.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement