A simple Industrialist utility script that prevents AFK kicks and removes pollution-related visual effects. The script disables pollution atmosphere density, restores normal color tint, and keeps outdoor lighting bright for improved visibility.
No comments yet. Be the first to comment!
1local antiafk = true
2
3local player = game:GetService("Players").LocalPlayer
4local vu = game:GetService("VirtualUser")
5
6player.Idled:Connect(function()
7 if not antiafk then return end
8
9 vu:CaptureController()
10 vu:ClickButton2(Vector2.new())
11end)
12
13-- == --
14
15local lighting = game:GetService("Lighting")
16
17local atmosphere = lighting.PollutionAtmosphere
18local pcolor = lighting.PollutionColorCorrection
19
20local white = function()
21 return Color3.fromRGB(255, 255, 255)
22end
23
24local c1; c1 = atmosphere:GetPropertyChangedSignal("Density"):Connect(function()
25 atmosphere.Density = 0
26end); atmosphere.Density = 0
27local c2; c2 = pcolor:GetPropertyChangedSignal("TintColor"):Connect(function()
28 pcolor.TintColor = white()
29end); pcolor.TintColor = white()
30local c3; c3 = lighting:GetPropertyChangedSignal("OutdoorAmbient"):Connect(function()
31 lighting.OutdoorAmbient = white()
32end); lighting.OutdoorAmbient = white()