So I have a Spider-man web swinging system. It works by finding a nearby part and attaching a rope constraint from the character’s hand to that nearest part using attachments. Then applying a body force to that player to move them forward. I want the player 's character to rotate on the angle of the rope. So if the rope is rotated 45 degress, the player with rotate 45 with it.
Here is a picture of what I’m trying to achieve.
I tried doing this but since it’s using CFrame.lookAt halfway through the player swinging it makes the player rotate behind. How can I keep the player forward while keeping the rotation?
humanoidRootPart.CFrame = CFrame.lookAt(humanoidRootPart.Position, currentRope.Attachment1.WorldPosition) * CFrame.Angles(math.rad(-90), 0, 0)