Hello! I was wondering if a Textbox will work on a SurfaceGui, I have tried using the FocusLost function on both the Server and Client. The function appears to not be run. I have left my script below if it helps.
local textBox = script.Parent --what I have previously used
local function focusLost(enterPressed)
if enterPressed then
print("Focus was lost because enter was pressed!") --this is not being printed
end
end
script.Parent.FocusLost:Connect(focusLost)
(I have the Script as a child of the Textbox which is on a SurfaceGui, I have tried both LocalScripts and normal Scripts)
If Textboxes do not work on a SurfaceGui, then does anyone know how I am meant to use them?