How to change camera orientation

local camera = workspace.Camera 
	
	local tween_service = game:GetService("TweenService") 
	local tween_info = TweenInfo.new(0.03, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, true) 
	
	tween_service:Create(camera, tween_info, {CFrame = camera.LookVector * Vector3.new(0,0.5,0)}):Play() 
end)

What I want is that instead of changing the CFrame of the camera, the rotation is changed. The problem is that I don’t know how and I have done many topics but apparently nobody knows the correct answer If you don’t know how, no problem, just change the subject.

5 Likes

Try to use this script:

local camera = workspace.Camera 
	
	local tween_service = game:GetService("TweenService") 
	local tween_info = TweenInfo.new(0.03, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, true) 
	
	tween_service:Create(camera, tween_info, {CFrame = camera.CFrame * CFrame.Angles(0,math.rad(0.5),0)}):Play() 
6 Likes

It worked or not?Because i seen you liked it but not marked as solotuion.

I’m sorry, I liked it because I hadn’t tried it, excuse me that bro

3 Likes

No problem bro,so you tested it and it work or not? Because you marked it as solution, but have you tried it?Also use math.rad() to x and z too if you want to change them.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.