local antiafk = true
local player = game:GetService("Players").LocalPlayer
local vu = game:GetService("VirtualUser")
player.Idled:Connect(function()
if not antiafk then return end
vu:CaptureController()
vu:ClickButton2(Vector2.new())
end)
-- == --
local lighting = game:GetService("Lighting")
local atmosphere = lighting.PollutionAtmosphere
local pcolor = lighting.PollutionColorCorrection
local white = function()
return Color3.fromRGB(255, 255, 255)
end
local c1; c1 = atmosphere:GetPropertyChangedSignal("Density"):Connect(function()
atmosphere.Density = 0
end); atmosphere.Density = 0
local c2; c2 = pcolor:GetPropertyChangedSignal("TintColor"):Connect(function()
pcolor.TintColor = white()
end); pcolor.TintColor = white()
local c3; c3 = lighting:GetPropertyChangedSignal("OutdoorAmbient"):Connect(function()
lighting.OutdoorAmbient = white()
end); lighting.OutdoorAmbient = white()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.
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()