So I looked through videos but they don't work, first i added ScreenGui in StarterGui and then added TextBox in ScreenGui and added a local script in TextBox.

Here is a simplified script:

local kool = script.Parent
kool.Focused:Connect(function() 
wait(10)
print("O")
wait(0.5)
print("Ok")
end)

3 comments

0

What are you trying to do? I'm not the best at scripting but this just looks like when you click a text box "O" and "OK" wil be outputs to console after 10 seconds...

0

oh wait, i forgot to put wait like in my real script

0

Instead of printing use kool.Text.