There's 4 steps
1. Write the code
2. Create a script record
3. Deploy script record
4. Verify it does what you want
Write your client/user/etc.. script and upload it to the file cabinet. Then go to Customization -> Scripting -> Scripts -> New and select the file you uploaded. Then when it creates the record, hit deploy script and assign it to the record you want.
What issue(s) are you seeing?