Hello guys ^^
I’m trying to have movement skills like a dash, and I though I was on the right track with :
-- server side
local direction = player.Character.HumanoidRootPart.CFrame.lookVector * 50
local oldSpeed = player.Character.Humanoid.WalkSpeed
player.Character.Humanoid.WalkSpeed = 0
local velocity = Instance.new("LinearVelocity")
velocity.Attachment0 = player.Character.HumanoidRootPart.RootAttachment
velocity.VectorVelocity = direction
velocity.ForceLimitsEnabled = false
velocity.Parent = player.Character.HumanoidRootPart
player.Character.Humanoid.WalkSpeed = 0
wait(0.2)
velocity.VectorVelocity = Vector3.zero
velocity:Remove()
player.Character.Humanoid.WalkSpeed = oldSpeed
This way there is no lag between the server accepting the skill use and the movement. But the current result is that other players don’t see the movement. The dashing chracter just pop at the end.
How do you handle those things properly ?
Thanks !