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

How do you change text label with text button?

I want a button so when pressed it changes the text in a text label. What I have currently:

local Button = script.Parent

while true do
wait (0.1)
function textchange()
if script.Parent.Visible==true then
	Button.MouseButton1Down:connect (function()
		script.Parent.Parent.Speech.Text="How are you."
	
end)
	end
end
end

Please help.

1 comment

0

Lots of things you have currently are not needed. I've given you a script you can use.

1 answer

✓ Accepted answer
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Speech.Text = "How are you?"
end)

2 comments

0

thanks it works!

0

Glad I could help!

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