Hey there! I’m trying to make a zipline system where you can attach to the zipline at any position of the line, but I can’t seem to figure out how to get the player onto the zipline correctly.
This is what I currently use:
local distance = (lowestPoint.Position - humanoid.RootPart.Position).Magnitude
humanoid.RootPart.CFrame = v.CFrame
humanoid.RootPart.Position = humanoid.RootPart.Position - humanoid.RootPart.CFrame.LookVector*(distance/2)
In this case v is the rope, and lowestPoint is the lowest point of either side of the line. There’s also a highestPoint variable. The moving and rotating of the player happens with a bodyvelocity and a bodygyro.
Obviously, this is flawed and teleports the player twice. Any help on how to achieve this is appreciated!