Guest User

cframe lookat

a guest
Jul 24th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. I mean, CFrame is more than just position (not going to explain all it's contents).
  2.  
  3. If you did CFrame.new(0,0,0), that would be a position at 0,0,0
  4.  
  5. You can actually use CFrame to point objects at certain positions like so...
  6.  
  7. CFrame.new(Vector3.new(position), Vector3.new(lookAt))
  8.  
  9. So you would look at the mouse Hit X and Z, and the player's position Y.
  10.  
  11. I only suggest this because I think your problems are coming from the BodyGyro, though I'm not entirely sure because I rarely use them.
Add Comment
Please, Sign In to add comment