Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Set position of camera without affecting rotation? [closed]

Asked by
Muoshuu 580 Moderation Voter
9 years ago

How would I set the position of the camera without affecting it's rotation?

Locked by Muoshuu, FearMeIAmLag, and Perci1

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

By using the components method of CFrame.

I'm on my iPad right now so coding is difficult, but here's how:

Set up variables to catch all the return values (there are 12), and then pass them back in to a CFrame.new, modifying the first three to affect only the X, Y, and Z components of the Position, in that order, without touching the Rotation.

Ad