-
What do you want to achieve? A Dashing ability
-
What is the issue? All clients see the ability as I want them to but on the server it looks weird and causes the rest of my abilities to be messed up.
-
What solutions have you tried so far? I’ve tried looking at other posts but none of them were helpful
here’s the code that handles the ability (server script)
if SkillName == "VampireDash" then
DebounceSystem:AbilityBegun(player, SkillName)
local orinet = plrCharacter.HumanoidRootPart.Orientation
plrCharacter.HumanoidRootPart.CFrame = CFrame.new(plrCharacter.HumanoidRootPart.Position, WorldPosition)
CamShake:FireClient(player, "Shake", "Explosion")
wait(0.2)
local vampDash = plrCharacter.Humanoid:LoadAnimation(script:WaitForChild("VampDash"))
vampDash:Play()
local tween = TweenService:Create(plrCharacter.HumanoidRootPart, TweenInfo.new(0.2), {Position = WorldPosition})
wait(0.1)
tween:Play()
wait(0.2)
vampDash:Stop()
DebounceSystem:AbilityEnded(player, SkillName, Cooldown)
end
here’s a video of what it looks like for the client (i’ve tested it and it looks the same for all clients) and the server: