Problems with my modified Handcuff server addon

i found a FiveReborn server addon which allowed the user to cuff a player on the server and I wanted to adapt that to allow the user to type “/cuff” to cuff themselves or type “/handsup” to put their hands up. I am a complete beginner with Lua and so the code could contain a medley of mistakes however I cannot find what the problem is, please help.

__Resource:

Client:

Server:

Kinda seems like a lot of work when it could be reduced to 20 lines in your CL file. Send me a message and I will show you a better way to do that.