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:
local textbox = script.Parent wait(5) for i = 1,10 do wait(0.1) textbox.TextTransparency = textbox.TextTransparency + 0.1 end textbox.Text = "(new text)" for i = 1,10 do wait(0.1) textbox.TextTransparency = textbox.TextTransparency - 0.1 end 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.
local textbox = script.Parent wait(5) for i = 1, 10 do wait(0.1) textbox.Transparency = textbox.Transparency + 0.1 end textbox.Text = "(new text)" for i = 1, 10 do wait(0.1) textbox.Transparency = textbox.Transparency - 0.1 end wait(5)
Unless, your trying to connect to another text child inside explorer, this should work.