Does anyone know why clamp position isn't working in this code?

Apologies the clamping is something I added from here:

I just am not sure I added it right. And thank you for being patient with me, I’m still learning.

If I understand right, I still need to add the part where I call the function because it’s missing? I’m also realizing you’re the poster I got this from in that thread too!