script.parent.SafetyOn.OnServerEvent:connect(function() for i,v in pairs(script.parent.parent.parent.IFE:GetChildren()) do v.Decal.Transparency = 1 v.Slidetwo.Transparency = 1 v.Main.Transparency = 1 v.Slideone.Transparency = 1 v.Security.Transparency = 0
The issue im having with this is that its only changing one of the parts and not all.
script.parent.SafetyOn.OnServerEvent:connect(function() for i,v in pairs(script.parent.parent.parent.IFE:GetDescendants()) do -- you'll want :GetDescendants() if v:IsA("Decal") and v.Name ~= "Security" then -- if izza decal and not named "Security" v.Transparency = 1 -- poof elseif v:IsA("Decal") and v.Name == "Security" then -- if izza decal named "Security" v.Transparency = 0 -- o hai decal end end end)
Should do the trick.