How do you create a slope glide system?

I’m trying to create a sliding system on flat ground or a ramp but I don’t know what to start with, at the moment I only have this to start with:

Humanoid.Running:Connect(function(speed)
		
		

end)

I already have the function to detect whether the floor is a ramp

Detect when they click CTRL using UserInputService, then play a sliding animation, add a velocity to humanoidRootPart to boost, and maybe set walk speed to 0 so you can’t turn. Then wait for animation to complete and reverse all of those changes

I did the other things but I don’t know how to change the player’s velocity and remove velocity little by little.

Reference the humanoid root part, I’ll call it HRP for short

Do HRP.AssemblyLinearVelocity = Vector3.New(75, 0, 0)

Then use TweenService to tween the velocity to zero.

Don’t copy and paste this but something like this

Local info = (3)

Local tween = tween service.new(HRP, info, {AssemblyLinearVelocity = 0})

Tween:Play()

ok I’ll try to do something like this

1 Like

I’ve tried this but it doesn’t work

local Goal = {
			 AssemblyLinearVelocity = Vector3.new(0, 0, 0)
		}
		HumanoidRootPart.AssemblyLinearVelocity = HumanoidRootPart.AssemblyLinearVelocity + Vector3.new(speed, 0, 0)
		Humanoid.WalkSpeed = 0
		local TweeningSlide = TweenService:Create(HumanoidRootPart, TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), Goal):Play()
		
	end)

Nice try i don’t write tweens like that, I’ll try to get back to you tomorrow with some thing that works

ok thanks !
Ignore this text