of     1   

Abzec
#221180131Thursday, July 13, 2017 2:49 AM GMT

local gui = game.StarterGui.Store function onClicked(playerWhoClicked) if gui.Enabled == false then gui.Enabled = true else gui.Enabled = false end end script.Parent.ClickDetector.MouseClick:connect(onClicked) I want a gui to show once a click a part, what am I doing wrong, please help
Norman_Paperman
#221180329Thursday, July 13, 2017 2:52 AM GMT

Use gui.Visible, not gui.Enabled
masterblokz
#221180637Thursday, July 13, 2017 2:57 AM GMT

along with that ^, you're changing the gui in startergui not the actual players gui
Abzec
#221180758Thursday, July 13, 2017 2:59 AM GMT

That didn't work local gui = game.StarterGui.Store function onClicked(playerWhoClicked) if gui.Visible == false then gui.Visible = true else gui.Visible = false end end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Norman_Paperman
#221180836Thursday, July 13, 2017 3:00 AM GMT

Oh yeah, there's that too. Scripts for GUIs need to be part of that GUI for it to work. Put the script in the GUI, then reference script.Parent With all necessary changes, your script looks like this: --- local gui = script.Parent function onClicked(playerWhoClicked) if gui.Visible== false then gui.Visible= true else gui.Visible= false end end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Abzec
#221180880Thursday, July 13, 2017 3:01 AM GMT

Can you go into further detail?
Abzec
#221180932Thursday, July 13, 2017 3:01 AM GMT

Nvm, no need to go into further detail, thanks.

    of     1