You can use a debounce or change the Active property of the textbutton to false.
Example of debounce for clicking:
local clicked = false
button.MouseButton1Down:connect(function()
if not clicked then
clicked = true
-- rest of the code
clicked = false
end
end)