in all battlegrounds games, u can dash, and it slows u down after few seconds, u cant walk while dashing, and if u look somewhere else, the dash continues but u dash towards new lookvector, can anyone help
in a local script you need to set up some sort of loop that will continually update Velocity here’s a quick example
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = character.HumanoidRootPart
BodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
BodyVelocity.P = 1250
local Amount = 50
delay(1, function()
BodyVelocity:Destroy()
task.wait()
Character.Humanoid.WalkSpeed = 16
end)
spawn(function()
Character.Humanoid.WalkSpeed = 0
while BodyVelocity and BodyVelocity.Parent do
wait(0.01)
BodyVelocity.Velocity = character.HumanoidRootPart.CFrame.LookVector * Amount
end
end)
its simple and not great but this will project the character forwards and change the look direction while in shift lock, you can control the speed with ‘Amount’ and you can slow the speed over time by adding ‘Amount = Amount - 1’ to the loop