Press any key to continue (debounce)

If you want to write more lines, move the disconnect function to the end of the code:

local TS = game:GetService("Tweenservice")
local TI = TweenInfo.new(1)

local Event
Event = game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
    local Animation = TS:Create(script.Parent.Title, TI {Position = where you want the frame to be})
    Animation:Play()
    Animation.Completed:Wait()
    --More code here
    Enent:Disconnect() -- Disconnect at the end of code
end)
2 Likes