Hello,
I’m trying to make a dash system that similar to “The strongest battlegrounds” or “Z Battlegrounds” dash system
My issue is that I don’t know what should I use for that (body velocity, vector force, etc…)
I tried body velocity but I don’t know how to make it move to where the player looking and how to slow down
I think I figured out how it works. Here is my solution:
--Disabling player movement
hum.WalkSpeed = 0
hum.JumpPower = 0
--Creating the body velocity
local bodyV = Instance.new("BodyVelocity",humRp)
bodyV.MaxForce = Vector3.new(math.huge,0,math.huge)
--For loop for decreasing the speed and to move where the player looking
for i=60,0,-1 do
bodyV.Velocity = humRp.CFrame.LookVector * i
task.wait()
end
--Deleting the body velocity after the dash finished
bodyV:Destroy()
--Enabling player movement
hum.WalkSpeed = 16
hum.JumpPower = 50
You can also add animation to it just make sure to play the animation before the for loop and stop it after the for loop