So this piece of code is an example of the positioning I’m doing for my climb script:
local upPosition = (CFrame.new(Root.CFrame*Vector3.new(right or 0,up or 0,0))*(Root.CFrame-Root.CFrame.Position))
local Track = TS:Create(Climb, TweenInfo1, {CFrame = CFrame.new(upPosition.Position})
Track:Play()
Track:Destroy()
Problem with it is that when I do this code to make the player face the direction of which they’re climbing:
Direction = upPosition.Position + Root.CFrame.LookVector * 2
CFrame = CFrame.new(upPosition.Position, Direction)
I’m doing it wrong, and I don’t know how to make the player face the way they’re climbing. Anyone know how to do this correctly?
What I’m trying to do is make the player face where they are climbing, based off of the direction they’re going currently.