So this is in a TextButton. I want it so when it is clicked, a textbox becomes visible (currently non-visible)
function ButtonClicked() if (ButtonClicked) then game.StarterGui.EscapeMain.EscapeFrame.KeyBox.Visible = true end end script.Parent.MouseButton1Click:connect(ButtonClicked)
It's in a server-side script right now, and I also tried local, but it's not functioning. Thanks ahead of time.
-SmokeyIsSmoking
Fairly simple... Put you Gui in StarterGui (if you have not already) > Put this code into a NOT LOCAL
script.Parent.NAMEOFWHATISHOULDCLICK.MouseButton1Click:connect(function(Plr) -- What should I be clicking? game.Players[Plr.Name].PlayerGui.EscapeMain.EscapeFrame.KeyBox.Visible=true end)