Hey everyone!
What do I want achieve?
I want make a dash system but with the direction of the Humanoid when he walks.
Do you have any videos to show us better what you want achieve?
This is what I want:
and this script goes everywhere
The picture shows the dicrection in the video the Humanoid goes
https://streamable.com/hnjnae
And this is my problem As you can see it just go this way:
The picture shows the dicrection in the second video the Humanoid goes
So what Have I been Trying so far?
For making nothing complicated you can see the BodyVelocity I have been programming:
local function Dash(studs, look)
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.MaxForce = Vector3.new(10000,1,10000)
BodyVelocity.Velocity = studs * look
BodyVelocity.Parent = HMRP
wait(1)
BodyVelocity:Destroy()
end
the other things you can image what I have been creating so far:
input right or left then
Dash(HMRP.CFrame.RightVector, -50)
Dash(HMRP.CFrame.RightVector, 50)
input forward or back then
Dash(HMRP.CFrame.lookVector, 50)
Dash(HMRP.CFrame.lookVector, -50)
but that seems like it just give me 4 directions and not more. How can I fix this