how i send variables to host from client constantly?

Hello!, I have a question about how variables that constantly change in the client are synchronized and that they are reflected in all the other users? I tried to use the Networked attribute but this only works on the host side, if it is modified from the client nothing happens, I need to synchronize a float value that receives input from the user and sends it to the server, but I have no idea how to do that