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

How do I Make Camera Offset Not Point at the Character But Instead in a Certain Rotation?

Asked by 7 years ago

Hello there. I am using a custom camera script to create an offset for the camera. I would like the player to be in the left hand side of the screen but still facing completely to the right. I do not want the camera to automatically adjust the rotation so it is facing the character. Which setting should I set the camera to or what should I do? Thanks much!

~yoman1776

1 answer

Log in to vote
1
Answered by 7 years ago

You would need to set it to the Scriptable camera type

What this does is it allows you to change the rotation of the camera to your liking, through a script. Make sure that your script is a local script, as only local scripts can access the camera.

For information on how you can manipulate the camera, click here

Hope this helped!

0
It definitely did help in terms of finding the article, but the problem is that the camera is rotated towards the character while I actually want the rotation to be none, only completely in the direction down the Z-axis. How do I program that to happen instead of instantly focusing on the character. yoman1776 85 — 7y
0
You may have to set the camera subject and focus to nil. However, Im pretty sure this is the defualt with a scriptable camera. Volodymyr2004 293 — 7y
0
I just saw a wiki page saying that to make a controllable camera, one must make the CameraSubject equal to a part in Workspace. Should I do that? yoman1776 85 — 7y
0
You can try, note that now the camera would treat the part as if it were the player- if it was working properly Volodymyr2004 293 — 7y
Ad

Answer this question