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

Gui button not working?

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

1 answer

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)

1 comment

0

You marked me down.....?

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