Sets whether the button should fire OnEnter/OnLeave events while disabled

Signature:

Button:SetMotionScriptsWhileDisabled(enabled)

Arguments:

  • enabled - True to enable the scripts while the button is disabled, false otherwise (boolean)