ANSWER:

local cframe = HumanoidRootPart.CFrame
local ray = Ray.new(cframe.Position, cframe.LookVector.Unit * 2)
local Part, position, normal = workspace:FindPartOnRay(ray, Character, true, false)


HumanoidRootPart.CFrame = CFrame.new(cframe.Position, cframe.Position - normal)

1 comment

0

I'm glad you shared your fixed answer, as this could be very helpful to others :3