So basically I want the script to get of all the children under the parent of this object but not get the object that is the script.Parent of this script and check if the BackgroundTransparency is 0
local Other = script.Parent.Bubbly or script.Parent.Superhero or script.Parent.Hi or script.Parent.Bo if Other.BackgroundTransparency == 0 then Other.BackgroundTransparency = 1 game.Players.LocalPlayer.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=656118852" end
You can use a for statement, combined with getChildren() to cycle through the children and do this.
local others = script.Parent:GetChildren() for i,v in pairs(others) do if v:IsA("GuiObject") and v.BackgroundTransparency == 0 then v.BackgroundTransparency = 1 game.Players.LocalPlayer.Character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=656118852" -- I don't understand the purpose of this (especially when checking several items or looping), but I left it here just in case it was important end end