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
local textBox = script.Parent textBox.ReturnPressedFromOnScreenKeyboard:Connect(function() local text = script.Parent.Text print(text) end)
Fixing Ducky's script:
local bool = script.Parent.Boolvalue local textBox = script.Parent local text = script.Parent.Text while bool.Value == true do wait(1) 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 print(text) 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
local bool = script.Parent.Boolvalue local textBox = script.Parent local text = script.Parent.Text while bool.Value == true do wait(1) print(textBox.Text) end
Alright if you want something else tell me and ill change it accept if helps