How to change BodyVelocity to VectorForce?

Hey Developers,
can anyone help me with this script? It basically just gives a player a slide ability by pressing a button. The animation is working fine, i only want to change the Body Velocity to a Vector Force since Body Velocities are deprecated…
I want to achieve:

  1. change the body velocity to a vector force
  2. keep the slide power as same as before
SlideButton.MouseButton1Down:Connect(function()
				if Sliding then return end
				
				Sliding = true
				
				SlideAnimationPlay:Play() -- animation
				Slide:Play() -- tween for camera offset

				local slide = Instance.new("BodyVelocity")
				slide.MaxForce = Vector3.new(1,0,1) * 30000
				slide.Velocity = HumanoidRootPart.CFrame.lookVector * 100
				slide.Parent = HumanoidRootPart

				for count = 1, 8 do
					wait(0.1)
					slide.Velocity*= 0.7
				end
				SlideAnimationPlay:Stop()
				Idle:Play() -- original camera offset position
				slide:Destroy() 
				Sliding = false
				
			end)

Thanks for any tips! (I also named the Instances, so you know whats getting changed here)

Use a LinearVelocity

Thank you thats very helpful. I have a question, how do i set the force of the linear velocity so thats it the same as the body velocity (basically i don’t want the slide strength to be different)

To tell you honestly, I don’t know. One day, I attempted to change the old BodyMovers in my flying code to use the new Constriants.

And I could never get it to work the same.

So I just put the old body movers back.

Sorry, I couldn’t be more help

I give up for today… I tried way too many ways to get the LinearVelocity to work, sadly nothing did so. Thanks for your help tho!