Need Help with something [Idk what to name this]

Do anyone here know how to make TextButton appear if you put any word in Textbot.text “yes”, but TextButton will disappear if the Textbox.text is empty like this " "

hope you understand what I meant

try using the .Changed event to check if the textbutton has any text on it. if it doesn’t then just make it invisible.

  1. TextBox:GetPropertyChangedSignal("Text")
  2. TextBox.Changed()

I suggest using 1 tho

1 Like

what about TextBox.Changed() ?

edited: NVM

Im stupid
like this? [idk, Im stupid though]

It should be more like:

local TextBox = script.Parent
local Button = script.Parent.Teleport

TextBox:GetPropertyChangedSignal("ContentText"):Connect(function()
    if string.len(TextBox.ContentText) > 0 then 
        Button.Visible = true
    else
        Button.Visible = false
    end
end)
1 Like

just like that? damn, I’ve seen you 2 times now
thanks for helping btw

1 Like