How do i make character face the wall surface?

how do i make character face the wall and go to the wall like in tsb wall combos

1 Like

You can raycast towards the wall to achieve this.

local raycast = workspace:Raycast(rootPart.Position, rootPart.CFrame.LookVector * 5)

if not raycast then
    return
end

rootPart.CFrame = CFrame.lookAt(rootPart.Position, rootPart.Position + raycast.Normal)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.