I have a script that allows a user to perform a stunt, the issue is when they’re performing the stunt if they crash into a part or a wall they trip over (e.g. stairs) How can I fix this?
Script:
elseif key.KeyCode == Enum.KeyCode.E then
if candash2 then
candash2 = false
local v = Instance.new('BodyVelocity')
v.MaxForce = Vector3.new(math.huge,0,math.huge)
v.Velocity = char.HumanoidRootPart.CFrame.lookVector * Vector3.new(50,0,70)
v.Parent = char.Torso
wdash:Play()
debris:AddItem(v,0.7)
wait(1.5)
candash2 = true
wait(0.4)
end