Why isn't my camera rotating?

I’m using camera manipulation to enhance my combat system. I just made it so some skills zoom in the camera, that worked fine. Now I want to rotate the camera, but it isn’t moving at all. These are my property tables for tweening:

local Start = {CFrame = Cam.CFrame * CFrame.Angles(0, math.rad(90), 0)}
local End = {CFrame = Cam.CFrame * CFrame.Angles(0, math.rad(-90), 0)}

And this is the function that’s calling it. The camera is changing to scriptable, but it isn’t rotating.

	if t then return end
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
			if punched then return end
			if not canpunch then return end
			
		punched = true
		canblock = false	
		
		Cam.CameraType = Enum.CameraType.Scriptable
		TweenService:Create(Cam, Info, Start)
        --these two lines^
		local h = Audios.Punchswing:Clone()
		h.Parent = Character
		h:Play()
		
		lastpunch = tick()
		
		local Data = {
			["Action"] = "Stomach Elbow Strike",
			["Combo"] = combo,
			["CD"] = 0.7
		}

		Remotes.MainRemote:FireServer(Data) 
			
		Humanoid:LoadAnimation(game.ReplicatedStorage.Assets.Animations.DefaultAbilities["Stomach Elbow Strike"]):Play()
			
			canblock = true
			--Humanoid.WalkSpeed = 16
			wait(CD)
		end
	punched = false
	task.wait(3)
	TweenService:Create(Cam, Info, End)
	Cam.CameraType = Enum.CameraType.Custom
    --These two lines^
	end)

if anyone can help I would appreciate it!

1 Like

You forgot to press play on your tween service :Play()

2 Likes

Oh my god… this is the most embarrassed I’ve been in a long time

1 Like

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