I have been making a chat gui, but my chatbox wont react when it loses focus. It works as it should if I play solo, but upon starting a server/going online it wont work and there is no error outputs:
script.Parent.FocusLost:connect(function(EnterPressed) if EnterPressed and script.Parent.Text ~= "" then script.Parent.Parent.Value.Value = script.Parent.Text script.Parent.Text = "Press T, /, or click here to chat" end if script.Parent.Text == "" then script.Parent.Text = "Press T, /, or click here to chat" end end)
Anyone who can help?
Instead of 2 if statements, use an elseif statement. Remove the end on line 5, and replace 'if' on line 6 with 'elseif'