Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago
Edited 8 years ago

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

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago
1script.Parent.MouseEnter:connect(function()
2    children = folder:GetChildren()
3    children.Visible = true
4end)
5 
6script.Parent.MouseLeave:connect(function()
7    children = folder:GetChildren()
8    children.Visible = false
9end)

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

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. WHITEHH 0 — 8y
0
nvm im an idiot. Thanks dude. WHITEHH 0 — 8y
Ad

Answer this question