Hello, I’ve been trying to make a dash using body movers like LinearVelocity Or BodyVelocity (Also AssemblyLinearVelocity) but none of them work like I want. Basically they do not turn when you turn, what I mean by that is, the dash keeps going on the first assigned direction.
Apply a linearVelocity to the humanoidRootPart and constantly set it to the humanoidRootPart’s LookVector, and for simplicity’s sake just use uis to get keys, or if you really want to use humanoid.MoveDirection and do some math to figure out which direction the dash should go in.
Doesn’t seem to work, still goes in a predestined direction, I’ve made a code real quick to test;
local Character = script.Parent
local LineF = Instance.new("LinearVelocity",Character:FindFirstChild("HumanoidRootPart"))
local Attc = Instance.new("Attachment",Character:FindFirstChild("HumanoidRootPart"))
task.wait(2)
LineF.Attachment0 = Attc
LineF.ForceLimitsEnabled = false
local HRP = Character:FindFirstChild("HumanoidRootPart")
for i = 0,50 do
LineF.VectorVelocity = HRP.CFrame.LookVector * 50
end
I made this really fast so probably im missing something but even after tweaking around with the forces etc. it didn’t work.
I’m so sorry I meant to say BodyVelocity, I was testing linear velocity’s when I posted my comment so I just mistook the two. also for BodyVelocity It would be something like this.