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

Gui script not working?

TextButton = script.Parent

script.Parent.TextButton.MouseButton1Click:connect(function()
script.Parent.TextButton.Text  = "121"
end)

Text does not change when clicked

1 answer

I think that you just made a simple mistake in not using the variable you defined. it should be like this:

TextButton = script.Parent

TextButton.MouseButton1Click:connect(function()
	TextButton.Text  = "121"
end)

Anyways, I hope this helped. If you have any further problems/questions, please leave a comment below :P

####-Dyler3

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