Code:
local function ASUSWalls()
if ((gBool("VIS", "Active") && gBool("VIS", "AsusWalls") && gInt("VIS", "AsusWallsInt") != _VIS_AsusWallsInt) || ((!gBool("VIS", "AsusWalls") || !gBool("VIS", "Active")) && _VIS_Asus) || (gBool("VIS", "Active") && gBool("VIS", "AsusWalls") && !_VIS_Asus)) then
for k, v in next, Entity(0):GetMaterials() do
if (gBool("VIS", "Active") && gBool("VIS", "AsusWalls")) then
Material(v):SetFloat("$alpha", gInt("VIS", "AsusWallsInt"))
if (k == #Entity(0):GetMaterials()) then
_VIS_AsusWallsInt = gInt("VIS", "AsusWallsInt");
_VIS_Asus = true;
end
else
Material(v):SetFloat("$alpha", 1)
if (k == #Entity(0):GetMaterials()) then
_VIS_Asus = false;
end
end
end
end
end
chuck that shit in a think hook and make some vars or some shit;
this wont lag ur shit cause it only activates if asus is toggled or the slider shit is changed
(i love posting unpastable code :c)