Hey guys, today I’ve stumbled upon a massive problem that I didnt realize. I rewrote my character controller to use custom movement scripts and I no longer use Playercontroller
This means all Pathfinding services and MoveTo Function will not work anymore with my character controller.
I am trying replicate the MoveTo Function by creating my own position/cframes to go to. And i’ve managed to get all this working except for the player orientation at certain angles
From the back side it works…
https://gyazo.com/42ed0702f767363bcdfe3c37e6b371c1
and to prove that it doesn’t matter what way the other player or my player is facing:
https://gyazo.com/42ed0702f767363bcdfe3c37e6b371c1
but on the back side i keep getting
https://gyazo.com/27b135db02014f542087e463af5f5597
Heres my code that basically attempts to reverse cframes
local tweenInfo = TweenInfo.new ( 1.0, Enum.EasingStyle.Linear ,Enum.EasingDirection.In, 0,false, 0 )
t = Reverse(t)
for i,v in pairs(t) do
print(v.CFrame)
local Position = v.CFrame.p
local Rotation = (v.CFrame - Position):Inverse()
local NewCF = Rotation + Position
local tween = TweenService:Create((myPlayer.Character:FindFirstChild("HumanoidRootPart")), tweenInfo, {CFrame = (NewCF)})
tween:Play()
tween.Completed:wait()
end