#Problem with changing the visibility of a UI

37 messages · Page 1 of 1 (latest)

fickle kraken
#

So I'm trying to make a menu where when you click the play button it hides the menu. The problem is my code doesn't seem to work and I'm not too sure why. I've only started learning like 2 days ago so I barely understand anything.

fickle kraken
#

ohhhhh

#

alr

#

ok ill try that

#

ok thx

#

i tried changing up the script but im still having some issues is there a solution for this?

lost igloo
#

MouseButton1Click is only a event from the GuiObjects of type GuiButton (ImageButton and TextButton), a frame doesn't have that method

fickle kraken
#

so is there no way to hide the frame at all?

carmine boughBOT
#

studio** You are now Level 2! **studio

polar summit
fickle kraken
#

how?

polar summit
#

read that doc

#

@fickle kraken

fickle kraken
#

alr

polar summit
#

that example obviously is a long unnecessary way of doing it but its one way

fickle kraken
#

ok

#

honestly i have no clue what im doing so yea

polar summit
#

you're referring it to clicking a frame and not a textbutton

fickle kraken
#

uhhh

polar summit
fickle kraken
#

ik

#

but

#

like

polar summit
#

you cant click a frame

fickle kraken
#

o

#

so

#

ive screwed up my entire thing right?

polar summit
#

not really

fickle kraken
#

is there a way to fix it or no?

polar summit
#

if Button is supposed to be the button you want to be clicking then delete it, change it to a TextButton and then redo the script

fickle kraken
#

o yea forgot to mention i had this script for like an animation but idk if that affects the script im trying to write now

polar summit
#

that shouldn't affect it in any way

fickle kraken
#

alr

#

im just gonna restart the entire gui