So I'm trying to make it so if you type something in the text box it will print the text is there a solution? this is a local script btw
1 | local textBox = script.Parent |
2 |
3 |
4 | textBox.ReturnPressedFromOnScreenKeyboard:Connect( function () |
5 | local text = script.Parent.Text |
6 | print (text) |
7 | end ) |
Fixing Ducky's script:
1 | local bool = script.Parent.Boolvalue |
2 | local textBox = script.Parent |
3 | local text = script.Parent.Text |
4 |
5 | while bool.Value = = true do |
6 | wait( 1 ) |
7 | local text = script.Parent.Text -- Puts the text variable here so the text is updated to the current text. Putting it before the while do will not make it update |
8 | print (text) |
9 | end |
alright if you want you can make a bool value and then set it to true so when you dont want it to print the text you can make it set to false
1 | local bool = script.Parent.Boolvalue |
2 | local textBox = script.Parent |
3 | local text = script.Parent.Text |
4 |
5 | while bool.Value = = true do |
6 | wait( 1 ) |
7 | print (textBox.Text) |
8 | end |
Alright if you want something else tell me and ill change it accept if helps