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”.
Well, you may want to take a look at this article. Physics | Roblox Creator Documentation
Also I don’t know exactly what is the purpose of the freefall script as when the player moves, the humanoid state enters freefall. I don’t know how this will help you achieve the sliding effect shown in the first video.
Also you’ll need to script it so the player can jump when the arm is hanging if you want to achieve that as well. Roblox physics won’t allow you to just do that and clicking space bar will do nothing.
Try enabling density and setting it to the max for the arm. You can also weld an invisible part to the end of the arm, and make it huge so that it’s mass can balance the player so they can hang.