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)