Hey everyone, I'm trying to make the text in my textbutton gui change transparency and change the message, but the script I wrote isn't working at all. I have no idea what is going wrong and it seems like it should work, but it isn't... any reason why? Script:
01 | local textbox = script.Parent |
02 |
03 | wait( 5 ) |
04 |
05 | for i = 1 , 10 do |
06 | wait( 0.1 ) |
07 | textbox.TextTransparency = textbox.TextTransparency + 0.1 |
08 | end |
09 | textbox.Text = "(new text)" |
10 | for i = 1 , 10 do |
11 | wait( 0.1 ) |
12 | textbox.TextTransparency = textbox.TextTransparency - 0.1 |
13 | end |
14 | wait( 5 ) |
reads a few lines and finds the error. TextTransparency isn't a valid property of Text UI Objects. remove the word text and your issue is solved.
01 | local textbox = script.Parent |
02 |
03 | wait( 5 ) |
04 |
05 | for i = 1 , 10 do |
06 | wait( 0.1 ) |
07 | textbox.Transparency = textbox.Transparency + 0.1 |
08 | end |
09 | textbox.Text = "(new text)" |
10 | for i = 1 , 10 do |
11 | wait( 0.1 ) |
12 | textbox.Transparency = textbox.Transparency - 0.1 |
13 | end |
14 |
15 | wait( 5 ) |
Unless, your trying to connect to another text child inside explorer, this should work.