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

How can I make a text box appear after i click a part?

Asked by 2 years ago

I am just trying to start off with a simple/beginner -leveled project and I did a lot research on how I can impact the button to force the textbox to appear but it seems to be not working?

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago
local ClickDetector = script.Parent -- where ever the click detector is relative to the script
ClickDetector.MouseClick:Connect(function(player)
    local PlayerGui = player:WaitForChild("PlayerGui");
    local ScreenUI = PlayerGui:WaitForChild("NameOfScreenGui")
    local TextBox = ScreenUI.TextBox
    TextBox.Visible = true
end)

After PlayerGui, you have to name your screen gui and then find your text box and make it visible. If you have any questions, just ask me.

0
tks so much dude! Out of curiosity, how long have u been learning to code?? thunder_long 4 — 2y
0
almost 2 years ghostbettert 30 — 2y
0
Also by the way, how did you add that check next to my answer? ghostbettert 30 — 2y
Ad

Answer this question