I have a script:
local char = script.Parent
local bodyvelocity = Instance.new("BodyVelocity")
bodyvelocity.MaxForce = Vector3.new(0, 0, 7500)
bodyvelocity.Velocity = Vector3.new(0, 0, -150)
bodyvelocity.Parent = char.HumanoidRootPart
(StarterCharacterScripts)
which forces a player to walk forwards, however I get an issue that it keeps walking into humanoid which messes up the angle, how do I make it so it stops when a humanoid is within a 20 stud radius. And how do I make it if it's dead the player will continue moving again?