local cfg = {transp = 0.1, toggle_bind = "F1"}
local a = game:GetService("Workspace"):FindFirstChild("Map")
if not a then return end
local b, c, d = false, {}, game:GetService("UserInputService")
local function e(f)
if f:IsA("BasePart") or f:IsA("MeshPart") or f:IsA("UnionOperation") or f:IsA("TrussPart") then
c[f] = {f.Transparency, f.Material, f.Reflectance}
end
if f:IsA("Decal") then
c[f] = {f.Transparency}
end
for _, g in pairs(f:GetChildren()) do
e(g)
end
end
local function h(i, j)
if i:IsA("BasePart") or i:IsA("MeshPart") or i:IsA("UnionOperation") or i:IsA("TrussPart") then
i.Transparency = j
i.Material = Enum.Material.ForceField
i.Reflectance = 0
end
if i:IsA("Decal") then
i.Transparency = j
end
for _, k in pairs(i:GetChildren()) do
h(k, j)
end
end
local function l(m)
if c[m] then
local n = c[m]
m.Transparency = n[1]
if n[2] then
m.Material = n[2]
end
if n[3] ~= nil then
m.Reflectance = n[3]
end
end
for _, o in pairs(m:GetChildren()) do
l(o)
end
end
e(a)
d.InputBegan:Connect(function(p, q)
if q then
return
end
if p.KeyCode == Enum.KeyCode[cfg.toggle_bind] then
b = not b
if b then
h(a, cfg.transp)
else
l(a)
end
end
end)
print('fucking stupid X-Ray loaded')
Comments
No comments yet
Be the first to share your thoughts!