Currently I am working on a dash the player can do to get around. For some reason, their is a strange lag whenever another player uses it. This kinda removes the purpose of having the dash also have invincibility as it seems more like a TP than anything.
I have no clue what causes this to happen as on the clients screen the dash works perfectly. Both players in the clip bellow have a ping of 40~50
Bellow is the script controlling the roll + a video showing off what is happening
The script bellow is an extract of a server script that will run the content bellow when an input is pressed. I just removed all the input stuff as I don’t think it affects the problem
my best guess is the server is getting confused on your character’s actual velocity due to using two linear velocities. try removing one temporarily to see if this gets rid of the lag?
I’m creating the linear velocity on the server, however, if this was what made the lag I am confused why on the own client there is no lag with the movement.
If the NPC is controlled by the Client then the reason for the Network lag is because the Server is trying to move the Character with LinearVelocity but the NetworkOwnership is set to the LocalPlayer