I have frankly no idea why this doesn't work, I seem to be doing everything right, and when placed in another script it works, but in this particular script it doesn't.
I have a ScreenGui, and the children are a LocalScript and a TextButton. I want to use the 'GetPropertyChangedSignal' event to get the text of the TextButton everytime it's changed, but for some reason it doesn't work at all and I have no idea why. Below is a picture of how they're positioned.
https://gyazo.com/99fc5b7bea0e8f4c402ce15fc80be8f6
ALL IN A LOCAL SCRIPT
Here is the code that I have been using:
local EnterWords = script.Parent.EnterWords EnterWords:GetPropertyChangedSignal("Text"):Connect(function() print(EnterWords.Text) end)
I can't tell whether I'm making a simple mistake because I can't see why this won't work. I will accept your answer if it works.
Edit: Even if I do:
print(game.Players.RyanTheLion911.PlayerGui.randomWords.EnterWords.Text)
nothing prints out, even though the TextButton has text.
That looks right to me, but maybe try this:
local EnterWords = script.Parent.EnterWords EnterWords:GetPropertyChangedSignal("Text"):Connect(function(text) print(text) end)
I'm not quite sure this will work but it's worth giving a try
Edit: Btw text buttons don't have a TextEditable value. That only comes with TextBoxes