Trying to find a way to make text change when a brick is clicked. Is there a way to do this?
✓ ANSWER ACCEPTED
(ANSWERED) How do I make GUI Text Change When I Click On A Brick?
1 answer
✓ Accepted answer
Yep! You will want to insert a ClickDetector into the brick, and then put a script inside of that brick. (I'm assuming you're talking about a screengui)
script.Parent.MouseClick:Connect(function(plr) --This tells the script that it has been clicked, and which player clicked it.
--Insert name of GUI and Text below (keep plr.PlayerGui)
plr.PlayerGui.ScreenGui.TextLabel.Text = "Hello World" --example
end)
2 comments
0
Sorry! Put the script inside of the ClickDetector, I mistyped
0
Do not support script requesting. It is not ok on this website.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This is not a script request site. Your post gets removed due to these things.