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

How to tilt the players camera at the same degree of a certain brick?

Asked by 8 years ago

How can I tilt/rotate the players camera based on the rotation of a brick? For example, the brick rotates left, and the player's camera tilts the same way. I want this to happen while i'm sitting on a vehicleseat, and the camera to rotate the same way the seat tilts. Or can I simply just somehow attatch the camera to a brick, and the brick rotates the same way the seat does, and the camera will rotate with it? You should know what I mean if you played Angels Fifteen, how the camera moves with the plane. Not the best with camera placement, can somebody help me figure out how i'm going to code this? If you'r bored enough you probily will write the script for me, lol.

If you do script it for me, the vehicleseat will be called PilotSeat and the script should be placed in the seat.

Thanks!

0
Couldn't you just set the CameraSubject to the part you want and then use the Fixed camera type? Spongocardo 1991 — 8y

1 answer

Log in to vote
1
Answered by
ZeroBits 142
8 years ago

current camera:SetRotation(part.Rotation.X/Y/Z (depending on which axis you want the roation, and which way the part faces))

0
Thanks! Duskriser 5 — 8y
Ad

Answer this question