• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


28 Nov, 2024

Updated at 05 Dec, 2024

How would i change the *ROTATION ONLY* through CFrame?

Im trying to make an “Auto target” system that automatically turns your character toward the nearest enemy. i tried to do this by setting the humanoidrootpart’s cframe to CFrame.lookAt(their current position here, the enemy position here). what i think this is supposed to do is keep them in the same position, but turn their character to look at the nearest enemy. when i tested it, however, the character started glitching a lot. i think this is due to the cframe being slightly off with the position, so i want a way to change the rotation only.

1 post - 1 participant

Read full topic