Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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!

1 comment

0

Couldn't you just set the CameraSubject to the part you want and then use the Fixed camera type?

1 answer

✓ Accepted answer

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

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.