Wall stick/Gravity Controller

I have tried to put the code in many areas but it does not seem to work.
also i need it to be client sided so that one person can be standing on a part with gravity controller enabled and the other person can be on a part with gravity controller disabled