#how to make a character look in the direction of a Vector3
1 messages · Page 1 of 1 (latest)
CFrame.Angles() maybe
CFrame.lookAt(rayResult.CFrame) or sum idk how lookat works
it does work with a vector3, just give it the origin and the target
but character pivot with a cframe from the position of the hrp to a flattened y vector for the raycast result ( if u want it to stay upright ) will also work
if that's the case, then wouldnt CFrame.lookAt(player.Character.HumanoidRootPart.CFrame, rayResult.CFrame) work?
oh
CFrame.lookAt(hrp.Position, Vector3.new(hit.X, hrp.Position.Y, hit.Z))```
im assuming he wants yaw only
for what he is asking
but as u can see
what does hit have to do with the raycast
oh is it the thihg the raycast hit
Yes
** You are now Level 3! **
Kind of obv lol
CFrame.lookAlong() 
Ok it’s late but I will try this tomorrow when i get up
its better to look this stuff up in the docs and learn how they work and how to use them http://wiki.roblox.com
wait does lookalong work for an entire character or is it just for parts