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
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.
TextBox:GetPropertyChangedSignal("Text")
TextBox.Changed()
I suggest using 1 tho
what about TextBox.Changed()
?
edited: NVM
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)
just like that? damn, I’ve seen you 2 times now
thanks for helping btw