Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make it so when your mouse hovers a ImageButton, everything on the folder will be visible?

http://wiki.roblox.com/index.php?title=API:Class/GuiObject/MouseEnter http://wiki.roblox.com/index.php?title=API:Class/GuiObject/MouseLeave http://wiki.roblox.com/index.php?title=API:Class/Instance/GetChildren

I saw some posts on how to get all children of a model. I placed them together but it doesn't work. (also organized it) Until I progressed by making the GUIs on the folder visible but not by mouse hovering. Can someone help me. I spent a day figuring this out. I'm also a basic scripter and not advanced. I still don't know how to make scripts but I know how to read scripts and fix some errors.

P.S. I know how to do the mouse hover but I don't understand GetChildren and I don't know how to organize it.

If you don't know what I'm talking about then comment the part you don't understand. (I'm not good at english)

Again: I'm trying to make a gui that when the mouse hovers on it. It will make GUIs on a folder go visible = true and when the mouse leaves. It will make the GUIs on a folder go visible = false.

Hmm. I think i'll just use show gui on mousebutton1click.

1 answer

✓ Accepted answer
script.Parent.MouseEnter:connect(function()
	children = folder:GetChildren()
	children.Visible = true
end)

script.Parent.MouseLeave:connect(function()
	children = folder:GetChildren()
	children.Visible = false
end)

Try that. If that doesn't work, try listing the children seperately.

2 comments

0

I think I did something wrong. So I put a variable named folder. I'm pretty sure that only gets 1 children or something because people were talking about using loop to get all children. Do I have to add something at the end?? I have been figuring this out for too long.

0

nvm im an idiot. Thanks dude.

This discussion is preserved as it was. New answers, comments, and votes are closed.