so I'm trying to make an answer game and i decided to use
1 | TextBox = game.StarterGui.ScreenGui.TextBox |
2 |
3 | and I did |
4 |
5 | TextBox.Text.Changed:Connect( function () |
6 | if TextBox.Text = = 'Noob' then print ( 'got it rigt' ) but it keeps on erring any one know why? |
7 |
8 | end |
Check if the text was changed on it then check if the text is "Noob"
1 | local TextBox = script.Parent.TextBox |
2 |
3 | TextBox.Changed:Connect( function (Property) -- Whenever Any property is changed on TextBox |
4 | if Property = = "Text" then -- Checks if the property was the Text |
5 | if TextBox.Text = = "Noob" then -- Checks if the text is "Noob" |
6 | print ( "Got It Right" ) -- Prints |
7 | end |
8 | end |
9 | end ) |