I’m trying to stop the sliding effect on Freefall. The issue is when I enable freefalling, the player starts to slip off a part. If the player is freefalling but freefalling is set to false, the player would be unable to move.
I tried to enable freefalling when the player moves and disables after the player stops moving, but that didn’t work. I also tried to lower the MaxSlope to 0 but that still didn’t work.
RunService.Stepped:Connect(function()
local character = player.Character
if character then
local humanoid = character:WaitForChild("Humanoid")
if humanoid.MoveDirection.Magnitude > 0 then
humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, true)
else
humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)
end
end
end)
I am trying to achieve a system like “Obby but you have a long arm”.
What I want to achieve:
My problem: