#How do u get the orientation of a character
15 messages · Page 1 of 1 (latest)
local character = game.Players.LocalPlayer.Character
local hrp = character:FindFirstChild("HumanoidRootPart")
local orientation = hrp.CFrame:toObjectSpace(CFrame.new(hrp.Position))
gagagagaga
thanks
it still says attempt to index nil with cframe
pro
just
use Orientation
like in ur code
Developer Forum | Roblox
I’m trying to get what would be x, y, and z orientation values from a CFrame, using the “convert” function. I used the code to point a part towards another one, then compare what I got from “convert” to the actual part’s orientation. The x and y values seem to be fine, but it looks like z is nonsense. Sometimes z would print as 0, as it should,...