BodyVelocity flight issue

I have a script here that lets a user perform a stunt. When they play the trick, if they’re on edge, they can float forward until the stunt ends. What I want is for the user to fall like normal gravity if they’re on a rim.
My script:

elseif key.KeyCode == Enum.KeyCode.E then
				if candash2 and force >= 30 then
					candash2 = false
					force = force - 30
					updateStamina()
					local v = Instance.new('BodyVelocity')
					v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
					v.Velocity = char.HumanoidRootPart.CFrame.lookVector * Vector3.new(50,50,50)
					v.Parent = char.Torso
					wdash:Play()
					debris:AddItem(v,1)
					wait(1.5)
					candash2 = true
					wait(0.6)
				end 

What are my options? Examples appreciated! :slight_smile:

1 Like

My character also trips on parts, how do I get rid of the “float”/

Remove the body velocity when you don’t hold the key or the stunt is done or what ever you call it

Remove or reduce the forces applied on the Y axis

v.MaxForce = Vector3.new(math.huge,0,math.huge)
v.Velocity = char.HumanoidRootPart.CFrame.lookVector * Vector3.new(50,0,50)
1 Like