Add Credit Based system to App

Hi guys, was wondering if anyone here has or knows how to implement a credit based system for users in their app. My app depends heavily on a credit based system which I can’t seem to implement and is stopping me from finishing the app. Even if I can’t have a credit system I’d love to have something that can limit form submissions on a user basis.

The app runs mainly on a customized form which connects to make to perform an action. Currently I don’t have a way to limit or put a threshold on these submissions. So users can technically perform unlimited actions which can’t work.

Would really appreciate any ideas or workarounds to this.

Change a role in airtable when they complete an action and make blocks available based on conditional formatting