I have a dash script that is supposed to teleport the player 10 studs ahead of themselves, but it ends up just teleporting the player to a position completely unrelated.
Here is my code:
(This code only includes the part with the problem)
local function Dash()
Moving.Value = true
print("Dash Foward")
HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.CFrame.lookVector) * CFrame.new(0, 0, -10)
wait(0.3)
Moving.Value = false
end

2 comments
I kinda wanna teleport the player instead of launching them forward, though.
Oh, then I don't know what to do then because this is technically not dashing.