#Part not matching y orientation with humanoidRootPart when terrain is steep.

2 messages · Page 1 of 1 (latest)

rancid wasp
#
local footprintBasePos = footstepsClone[i].PrimaryPart.Position
                local footRay = Ray.new(Vector3.new(footprintBasePos.X, footprintBasePos.Y + 20, footprintBasePos.Z), Vector3.new(0,-999, 0))
                local footHit, footPos, footNorm = workspace:FindPartOnRayWithWhitelist(footRay, {workspace.Map.Grass})
                if footHit then
                    footstepsClone[i]:SetPrimaryPartCFrame(CFrame.new(footPos, footPos - footNorm) * CFrame.Angles(math.rad(90), math.rad(hrp.Orientation.Y), 0))
sturdy tangle
#

would getting the lookVector work better?