I’m making a difficulty chart obby, and I have a thing where you can go to any previous stage by entering the stage number in a textbox and pressing enter.
I’m not worried about the arrows, I already know what to do for those. I’m asking about the TextBox.
Is there like an event or something for pressing enter while typing/active on a textbox? If it is, what is it?
local Script = script
local TextBox = Script.Parent
local function OnTextBoxFocusLost(EnterPressed, InputObject)
if EnterPressed then
--Do code.
end
end
TextBox.FocusLost:Connect(OnTextBoxFocusLost)