How to make an animation not visible for a certain client roblox

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make an animation not visible for a certain client roblox
  2. What is the issue? Include screenshots / videos if possible!
    Let me explain, I’m making a combat system that uses keyframe reached to determine when to make a hitbox, my problem is, Because the animations are server sided. The player gets a feel that they have ping. However If I could make the animations look different for the client than the server, the problem would be resolved. To make a client only animation: How do I make an animation JUST play on the client? - Help and Feedback / Scripting Support - Developer Forum | Roblox. Now the other thing, is to remove the animation on the server so the two don’t conflict.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    No other similar posts
1 Like

You could try using Humanoid:GetPlayingAnimationTracks() on the client to look for a specific track and stop it locally.

If that doesn’t work, instead of having a certain client override the server’s animation, you can just have the server tell all clients what animations they should be running. For example, just have the client which is initiating an attack or whatever run the animation immediately and tell the server, then the server will tell all the other clients in the game to run the animation too. The issue with this is that then the server is not running those animations so it would not work well for physics objects which the server owns.

I just found out sorry for burdening you. If I delet the animator on client and replace it, I get the desired effect, and it doesn’t interefere because its only on client: How do I make an animation JUST play on the client? - Help and Feedback / Scripting Support - Developer Forum | Roblox