I have a CFrame I am moving a anchored player with, I want to keep assigning the players CFrame to this CFrame, but I dont know how to change the rotation of the player while doing so. So basically, I want the player rotated a certain way while also assigning the CFrame of the player to another CFrame.
This is part of a very weird system I have for wall sliding. If anyone knows of a controller or something I could use to achieve wall sliding please let me know, as this system is extremely weird. (but works! kind of)
local Part = workspace.Paaart -- The part you want the player to be teleported to
local Player = game.Players.LocalPlayer
local Character = Player.Character
Character.HumanoidRootPart.CFrame = CFrame.new(Part.Position)
I am trying to get the cameras position CFrame and point the character to it, I have done that but I want to get a specific angle from it and make it the orientation at which the player is locked to when this is called. I did that by printing out the .LookVector of the player, but I dont know how to convert these numbers to work properly. I just tried using math.rad but it did not produce the desired outcome