When i try to make multiple Gui's invisible, nothing happens. I don't really know what i'm doing here but i know it doesn't seem right. Does anyone know what i'm doing wrong here?
Script location: This script > ScreenGui > Script > PlayerGui
for i, g in pairs(script.Parent.Parent.Parent:GetChildren()) do if g:FindFirstChildOfClass("ScreenGui") then if g:FindFirstChildOfClass("ScreenGui"):FindFirstChildOfClass("TextButton") then g:FindFirstChildOfClass("ScreenGui"):FindFirstChildOfClass("TextButton").Visible = false end end end --Removed indentation due to the script being too long for the website
I get an error saying Error occured, no output from Lua
on Line 2