user4129: I am trying to create a validator function that only lets the user send ADA to the creator of the script if the user sends x amount of ADA how to I find out the amount of ADA the user sent and then put it in a boolean statement?
(____ == ADA.lovelaceValueOf 30)

user4596: You can not disallow users to send ADA into your smartcontract script address.
You can only deny unlocking.
However you can check how much of value is being sent with outgoing transaction from txOut by checking txOutValue field.

4129: <p>I am trying to create a validator function that only lets the user send ADA to the creator of the script if the user sends x amount of ADA how to I find out the amount of ADA the user sent and then put it in a boolean statement?</p>
<p><code>(____ == ADA.lovelaceValueOf 30)</code></p>
 4596: <p>You can not disallow users to send ADA into your smartcontract script address.</p>
<p>You can only deny unlocking.</p>
<p>However you can check how much of value is being sent with outgoing transaction from txOut by checking txOutValue field.</p>
