Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to disable a button?

Is it possible to make a TextButton not "clickable" so that the user cant just keep clicking it and the function doesn't run?

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.