Hi there, I've been having trouble with my script. (naturally)
What I'm trying to do is make it so my script will enable all the of GUI;
-alterme (regular ScreenGui) -Frames (Frame) - face (picture) - warning (picture) - text1 - text2 - text3
but when I run the script, it goes through without error, but does absolutely nothing in the process.
Script:
getScripts = script.Parent.alterMe local onJoin = getScripts:GetChildren() for i = 1, #onJoin do visible = true end
I've been at this all day and quite frankly this 7 line script has given me a real bad headache. Any help would be appreciated at this point. :)
getScripts = script.Parent.alterMe
local onJoin = getScripts:GetChildren()
for i = 1, #onJoin do visible = true end
getScripts = script.Parent.alterMe local onJoin = getScripts:GetChildren() for i,v in pairs(onJoin)do visible = true end
local getScripts = script.Parent.alterMe local onJoin = getScripts:GetChildren() for index, value in pairs(onJoin) do value.visible = true end
in pairs(tablename) iterates through the table 'tablename' at each index 'index' and returns the value at each index. In your case, the values would be everything inside the table 'onJoin'. However if you have an object inside of alterMe that doesn't have a 'Visible' property, an error will be thrown.