Camera Run Animation

Hi developers, I wonder how I could make animations for the camera
And no, am not about cut scenes, am talking about camera animation while you running.
This is the current code I have aboard

P.S. Right now I just testing how I could change values normally, there is still a useless part of the code

YOffset = Instance.new("NumberValue")
YOffset.Parent = script
YOffset.Name = "YOffset"

XOffset = Instance.new("NumberValue")
XOffset.Parent = script
XOffset.Name = "XOffset"

game:GetService("TweenService"):Create(YOffset,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,-1,true),{Value = 7.5}):Play()
game:GetService("TweenService"):Create(XOffset,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.In,-1,true),{Value = 15}):Play()

DoesAnything = false

game:GetService("RunService").RenderStepped:Connect(function()
	if DoesAnything then
		game.Workspace.CurrentCamera.CFrame = game.Workspace.CurrentCamera.CFrame*CFrame.Angles(0,1,0)
	end
end)

Instead of doing what I actually want it to do, it just starts to spin the camera, any ideas?

1 Like

You should be playing the tween in the loop.

1 Like

Still just rotates camera and nothing else