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

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

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

✓ Accepted answer
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.

3 comments

0

tks so much dude! Out of curiosity, how long have u been learning to code??

0

almost 2 years

0

Also by the way, how did you add that check next to my answer?

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