Unable to change the player Camera's Orientation

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I just need the player’s Camera to rotate 360 degrees with TweenService for Cutscenes.

  2. What is the issue? Include screenshots / videos if possible!

local part = CurrentCamera
local propertyToTween = {CFrame = CurrentCamera.CFrame * CFrame.Angles(0, 0,math.rad(360))}



local tweenInfo = TweenInfo.new(
	10, -- Time
	Enum.EasingStyle.Back, -- EasingStyle
	Enum.EasingDirection.Out, -- EasingDirection
	-1, -- RepeatCount (when less than zero the tween will loop indefinitely)
	false, -- Reverses (tween will reverse once reaching it's goal)
	5 -- DelayTime
)
local tween = TweenService:Create(part, tweenInfo, propertyToTween)

The Script above did RUN properly, but for some reason, it changes the Position of the camera rather than Orientation? Which I am quite confused what to do here

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried looking for solutions and youtube videos on how to animate the camera, but none of explain how I could simply rotate/ edit the orientation of the camera.

*I did also try to do Orientation for the PropertyToTween, but it just says that Orientation cannot be found in “Camera”.

Did you try tween:Play() ?
Maybe that’s the issue.

yes, I did tween:Play() in the script, but what the tween does is moving the player’s camera forward a direction, but not changing the orientation

Did you set the CameraType before performing the tween?

CurrentCamera.CameraType = Enum.CameraType.Scriptable

That too, actually

I am able to script the camera’s position, just not orientation

As far as i can remember, current camera has a property called: “Orientation” try changing this line:

local propertyToTween = {CFrame = CurrentCamera.CFrame * CFrame.Angles(0, 0,math.rad(360))}

to this instead:

local propertyToTween = {Orientation = CurrentCamera.Orientation* CFrame.Angles(0, 0,math.rad(360))}

(also, maybe you may need to change something, idk if it will work)

Sorry for the late reply, but sadly it just doesn’t want to work
I’m not the best at tweening, nor I have really seen people talking about how to tween the orientation of the camera

local CamLocation = game.Workspace
local Cam1 = CamLocation.Cam1
local CurrentCamera = game.Workspace:WaitForChild("Camera")
--
local TweenService = game:GetService("TweenService")




CurrentCamera.CameraType = "Scriptable"
CurrentCamera.CFrame = Cam1.CFrame

local part = CurrentCamera
local propertyToTween = {Orientation = CurrentCamera.Orientation* CFrame.Angles(0, 0,math.rad(360))}



local tweenInfo = TweenInfo.new(
	10, -- Time
	Enum.EasingStyle.Back, -- EasingStyle
	Enum.EasingDirection.Out, -- EasingDirection
	-1, -- RepeatCount (when less than zero the tween will loop indefinitely)
	false, -- Reverses (tween will reverse once reaching it's goal)
	5 -- DelayTime
)



local tween = TweenService:Create(part, tweenInfo, propertyToTween)

tween:Play()
CurrentCamera.CameraType = "Scriptable"
CurrentCamera.CFrame = Cam1.CFrame
--task.wait(10)
--tween:Cancel() -- cancel the animation after 10 seconds

I’ll post the whole script here this time

1 Like

Oh, my bad, i think the current camera doesn’t have a orientation property, then i don’t know how to help, sorry