How To Make Realistic Physics-based Slide Ability?

  1. What do I want to achieve? I want to make a realistic physics-based sliding system like parkour reborn for my upcoming parkour game.

  2. What is the issue? After watching countless number of YouTube videos and devforum posts, i could not find any working tutorial.

  3. What I got so far? After messing with character’s properties this is what I got so far:

Here is a Script that does this job:

UIS.InputBegan:Connect(function(input, gameProcessedEvent)
	print(input.KeyCode,gameProcessedEvent)
	if input.KeyCode == Enum.KeyCode.C and not gameProcessedEvent then
		a = not a
		if a then 
			PlrMovement:SetSpeed(0,0,0)--a knit service to manage player speed
			hum.JumpPower = 0
			for _, limb in ipairs(char:GetChildren()) do
				if limb:IsA("BasePart") or limb:IsA("MeshPart") or limb:IsA("UnionOperation") then
					limb.CustomPhysicalProperties = PhysicalProperties.new(0.05, 0, 0, 0, 0)
					limb.Massless = true
				end
			end 
			track:Play(0.5)-- animation
		else
			PlrMovement:SetSpeed(30,100,2)-- Reset to default walk speed
			hum.JumpPower = 50 -- Reset to default jump power
			for _, limb in ipairs(char:GetChildren()) do
				if limb:IsA("BasePart") then
					limb.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5, 1, 1)
					limb.Massless = false
				end
			end 
			track:Stop(0.5)-- animation
		end
	end
end)

This is my first devforum post, so any thoughts are appreciated! Is this script the correct way of doing that? If no, then please help me!

1 Like