Should i handle my character controller on the server or client

so i have a script that is put inside any character inside my game which uses runservice’s .Heartbeat function

every heartbeat it determines what animation for the characters speed and it also determines said speed

i dont know if i should handle this on the server and keep it with heartbeat or put it on the client and use renderstepped