Making camera tween stay and/or backwards midway

I want to make a camera similar to the Little Nightmares Series where the camera tweening to certain points as the character is walking forward. When the player is walking backwards, it tweens in the reverse direction as well. If you don’t know what I am talking about, search little nightmares gameplay or something and look how the camera is manipulated.

The problem I am having right now is that I don’t know how to make the camera tween in reverse or stop a tween at any moment even if it is during a middle of a tweening process.

You can’t put a tween in reverse remotely, but what you can do is stop the forward tween and start a backwards tween. As for stopping the tweens, check this out:

local Animation = game.TweenService:Create(...)
Animation:Play()

local function onReverse()
	Animation:Cancel()
	Animation = game.TweenService:Create(...)
	Animation:Play()
end

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